Skip to content

Commit

Permalink
Update TcpConnection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Feb 14, 2017
1 parent d8bf0db commit 02e71ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Connection/TcpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ public function baseRead($socket, $check_eof = true)
STREAM_CRYPTO_METHOD_SSLv3_SERVER | STREAM_CRYPTO_METHOD_SSLv23_SERVER);
// Negotiation has failed.
if(false === $ret) {
echo "\nSSL Handshake fail. \nBuffer:".bin2hex(fread($socket, 8182))."\n";
if (!feof($socket)) {
echo "\nSSL Handshake fail. \nBuffer:".bin2hex(fread($socket, 8182))."\n";
}
return $this->destroy();
} elseif(0 === $ret) {
// There isn't enough data and should try again.
Expand Down

0 comments on commit 02e71ee

Please sign in to comment.