commit | 48ea3cde081b6343ceda2f1e3811887c1d11859b | [log] [tgz] |
---|---|---|
author | Klaus Trainer <klaus_trainer@apache.org> | Wed May 31 16:27:08 2017 +0200 |
committer | Jens Geyer <jensg@apache.org> | Tue Jun 06 13:59:53 2017 +0200 |
tree | 095d7b966bbbede85650d464d6747f1c4f2b9993 | |
parent | 8da0e720bb8e7550220cf1b360f3fb8aa37b9ded [diff] |
THRIFT-4218: Set TCP_NODELAY for PHP client socket Client: PHP Patch: Klaus Trainer This closes #1283
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 @@ } throw new TException($error); } + + $socket = socket_import_stream($this->handle_); + socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1); } /**