Gen. partnerAlgotech

PHP function socket_set_timeout()

|
September 11, 2019

Availability in PHP 4.0

&Alias; stream_set_timeout

Set timeout period on a stream

Parameters

Parameter Data type Default value Note
$stream resource not The target stream.
$seconds int not The seconds part of the timeout to be set.
$microseconds int 0

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official socket-set-timeout documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.