PHP Classes

Client crash down cause server CPU to 99%

Recommend this page to a friend!

      Socket Server  >  All threads  >  Client crash down cause server CPU...  >  (Un) Subscribe thread alerts  
Subject:Client crash down cause server CPU...
Summary:Client crash down cause server CPU to 99%
Messages:1
Author:Andy.L
Date:2009-11-24 02:48:27
 

  1. Client crash down cause server CPU...   Reply   Report abuse  
Picture of Andy.L Andy.L - 2009-11-24 02:48:28
Step
1)Start server
2) A client connect to my server
3) Client crashed down
4) The php script cause CPU to 99%

"Socket Server" use is_resource() to judge whether connection is alive. If client crash down, is_resource() still return true. Then it cause a horrible dead loop.

 
For more information send a message to info at phpclasses dot org.