mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
bc9c089f3a
- Improvements in the multicast tests. - Very light refactoring in sockets.c.
9 lines
263 B
PHP
9 lines
263 B
PHP
<?php
|
|
function checktimeout($sock, $limit) {
|
|
$readfs = array($sock);
|
|
$writefs = $exceptfs = array();
|
|
if (socket_select($readfs, $writefs, $exceptfs, 0, $limit*1000) != 1) {
|
|
die("Socket read timeout hit. Can be a bug, a test bug, or a firewall issue.");
|
|
}
|
|
}
|