downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

GearmanClient::setWarningCallback> <GearmanClient::setStatusCallback
[edit] Last updated: Fri, 24 Jun 2011

view this page in

GearmanClient::setTimeout

(PECL gearman >= 0.6.0)

GearmanClient::setTimeoutSet socket I/O activity timeout

Description

public bool GearmanClient::setTimeout ( int $timeout )

Sets the timeout for socket I/O activity.

Parameters

timeout

An interval of time in milliseconds

Return Values

Always returns TRUE.



add a note add a note User Contributed Notes GearmanClient::setTimeout - [1 notes]
up
0
Ismael Cristal Jr
7 months ago
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.

 
show source | credits | sitemap | contact | advertising | mirror sites