PHP Unconference Europe 2015

GearmanClient::setTimeout

(PECL gearman >= 0.6.0)

GearmanClient::setTimeoutSet socket I/O activity timeout

Beschreibung

public bool GearmanClient::setTimeout ( int $timeout )

Sets the timeout for socket I/O activity.

Parameter-Liste

timeout

An interval of time in milliseconds

R├╝ckgabewerte

Always returns TRUE.

add a note add a note

User Contributed Notes 1 note

up
1
Ismael Cristal Jr
2 years 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.
To Top