Set the php.ini default_socket_timeout to an infinite value for DNode

view full story

http://serverfault.com – I'm using a library called DNode for php which connects with Node.js, a javascript library to handle web-sockets. When I start the script which is meant to serve as a daemon and listen for requests from Node.js, it works perfectly until it is inactive for some time, when it falls throwing some warnings related to the timeout of php. Checking the mentioned library, I found out that the problem was during a call to the function stream_socket_accept () of php, which takes as a parameter for the timeout the value defined in the php.ini under the key default_socket_timeout. Is there a way to set th (HowTos)