tags:

views:

28

answers:

1

I need to set timeout on client.recv in TCP server.

+1  A: 

last parameter of fsockopen

resource fsockopen  (  string $hostname  [,  int $port = -1  [,  int &$errno  [,  string &$errstr  [,  float $timeout = ini_get("default_socket_timeout")  ]]]] )
Galen