Wisembly/elephant.io — pull request #21 by ezannelli (2013-06-19 10:35:50+00:00)
Title: add timeout support for handshake

Add possibility to set timeout for handshake.

if socketio server is overloaded, handshake will wait on connection indefinitely, potentially leaving lots of php process hanging.

CURLOPT_CONNECTTIMEOUT is definitly needed when nodejs use 100% CPU and fail to process new client. Not sure about CURLOPT_TIMEOUT.

Thx