You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2017/06/06 12:01:56 UTC
thrift git commit: THRIFT-4218: Set TCP_NODELAY for PHP client socket
Client: PHP Patch: Klaus Trainer
Repository: thrift
Updated Branches:
refs/heads/master 8da0e720b -> 48ea3cde0
THRIFT-4218: Set TCP_NODELAY for PHP client socket
Client: PHP
Patch: Klaus Trainer
This closes #1283
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/48ea3cde
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/48ea3cde
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/48ea3cde
Branch: refs/heads/master
Commit: 48ea3cde081b6343ceda2f1e3811887c1d11859b
Parents: 8da0e72
Author: Klaus Trainer <kl...@apache.org>
Authored: Wed May 31 16:27:08 2017 +0200
Committer: Jens Geyer <je...@apache.org>
Committed: Tue Jun 6 13:59:53 2017 +0200
----------------------------------------------------------------------
lib/php/lib/Thrift/Transport/TSocket.php | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/48ea3cde/lib/php/lib/Thrift/Transport/TSocket.php
----------------------------------------------------------------------
diff --git a/lib/php/lib/Thrift/Transport/TSocket.php b/lib/php/lib/Thrift/Transport/TSocket.php
index 1495047..dd87039 100644
--- a/lib/php/lib/Thrift/Transport/TSocket.php
+++ b/lib/php/lib/Thrift/Transport/TSocket.php
@@ -241,6 +241,9 @@ class TSocket extends TTransport
}
throw new TException($error);
}
+
+ $socket = socket_import_stream($this->handle_);
+ socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1);
}
/**