From a7813011e4a2c52da764ec6eb68a4c4d8a7069da Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 28 Oct 2014 22:48:46 +1100 Subject: [PATCH] php - socket fix not yet in git --- pool/socket.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pool/socket.php b/pool/socket.php index 08b683e2..46f96d69 100644 --- a/pool/socket.php +++ b/pool/socket.php @@ -14,9 +14,9 @@ function socktmo($socket, $factor) $usetmo = $tmo * $factor; $sec = floor($usetmo); $usec = floor(($usetmo - $sec) * 1000000); - $tmoval = array('sec' => $sec, 'usec' => $use); - socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, $tmo); - socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, $tmo); + $tmoval = array('sec' => $sec, 'usec' => $usec); + socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, $tmoval); + socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, $tmoval); } # # Note that $port in AF_UNIX should be the socket filename