ratchetphp / socketo.me

Ratchet's Website
http://socketo.me
Other
22 stars 40 forks source link

supervisor process tweak so process is stoppable #21

Closed basz closed 9 years ago

basz commented 9 years ago

Don't know exacly whats going on but while enhancing your chat example so it would actually halt (via SIGTERM signal, from supervisor) I noticed that the php process was't killed at all (resulting in a port in use error on the next start). The 'SIGTERM' signal never reached PHP.

After googling and fiddling a bit this seems to be a better way. the signal arrives in PHP and the process is halted. and the ulimit seems to be in effect (tested by using 1)

cboden commented 9 years ago

Thanks for the info and fix!