GearmanClient
在线手册:中文  英文

GearmanClient::setTimeout

(PECL gearman >= 0.6.0)

GearmanClient::setTimeoutSet socket I/O activity timeout

说明

public bool GearmanClient::setTimeout ( int $timeout )

Sets the timeout for socket I/O activity.

参数

timeout

An interval of time in milliseconds

返回值

Always returns TRUE.


GearmanClient
在线手册:中文  英文

用户评论:

Ismael Cristal Jr (2012-10-06 02:54:09)

GearmanClient has a default timeout of -1 you need to set this to a positive number using setTimeout to avoid cases where your script waits forever to run a job even if there are no workers running at all.

易百教程