yet another select() refinement
This commit is contained in:
parent
eccab87044
commit
031146f4c7
@ -122,9 +122,12 @@ class StompQueueManager
|
|||||||
if (in_array($stompsock, $read)) {
|
if (in_array($stompsock, $read)) {
|
||||||
$this->_handleNotice($queue, $handler);
|
$this->_handleNotice($queue, $handler);
|
||||||
}
|
}
|
||||||
$handler->idle(QUEUE_HANDLER_HIT_IDLE);
|
foreach ($handsocks as $sock) {
|
||||||
} else { // timeout
|
if (in_array($sock, $read)) {
|
||||||
$handler->idle(QUEUE_HANDLER_MISS_IDLE);
|
$handler->idle(QUEUE_HANDLER_HIT_IDLE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user