|
GearmanWorker::setTimeoutSet socket I/O activity timeout Description
public bool GearmanWorker::setTimeout
( int
$timeout
)Sets the interval of time to wait for socket I/O activity. Parameters
Return Values
Always returns Examples
Example #1 A simple worker with a 5 second timeout
<?php Running the worker with no submitted jobs will generate output that looks like the following: Starting Waiting for job... Timeout. Waiting for next job... Timeout. Waiting for next job... Timeout. Waiting for next job... See Also
|