ftp_sockets::_settimeout() –
You appear to be a bot. Output may be restricted
Description
Usage
ftp_sockets::_settimeout( $sock );
Parameters
- $sock
- ( mixed ) required –
Returns
void
Source
File name: wordpress/wp-admin/includes/class-ftp-sockets.php
Lines:
1 to 13 of 13
function _settimeout($sock) { if(!@socket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) { $this->PushError('_connect','socket set receive timeout',socket_strerror(socket_last_error($sock))); @socket_close($sock); return FALSE; } if(!@socket_set_option($sock, SOL_SOCKET , SO_SNDTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) { $this->PushError('_connect','socket set send timeout',socket_strerror(socket_last_error($sock))); @socket_close($sock); return FALSE; } return true; }