diff options
author | panivko <vladimir.panivko@together.com> | 2020-05-29 08:17:16 +0300 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2020-08-25 21:58:10 +0200 |
commit | 0503fc0112728bd17d9b5163716265c2a879404f (patch) | |
tree | 9ac0ade6918ac2a3d3783f61151aa5d9ee8e7e92 | |
parent | c80b8bbe703f593d1aa47941bd6b61f7726068bd (diff) | |
download | thrift-0503fc0112728bd17d9b5163716265c2a879404f.tar.gz |
THRIFT-5132 Warning in TSocket when using ssl connection
Client: PHP
Patch: Vladimir Panivko
This closes #2160
-rw-r--r-- | lib/php/lib/Transport/TSocket.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/php/lib/Transport/TSocket.php b/lib/php/lib/Transport/TSocket.php index 374037a27..8fe60fdaa 100644 --- a/lib/php/lib/Transport/TSocket.php +++ b/lib/php/lib/Transport/TSocket.php @@ -251,8 +251,9 @@ class TSocket extends TTransport } if (function_exists('socket_import_stream') && function_exists('socket_set_option')) { - $socket = socket_import_stream($this->handle_); - socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1); + // warnings silenced due to bug https://bugs.php.net/bug.php?id=70939 + $socket = @socket_import_stream($this->handle_); + @socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1); } } |