boradashvin / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

stream_select() should have some reasonable timeout #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi!

If You take the simple example and do it without $conn->connect() (as I did
by mistake), the http server eats all CPU time in
XMPPHP_XMLStream::__process(). I suggest some minimal timeout should be
used with stream_select() to avoid this in a similar situation.

Original issue reported on code.google.com by butrus.b...@gmail.com on 10 Mar 2009 at 4:14

GoogleCodeExporter commented 8 years ago
It used to be reasonable -- thanks for the heads up.

Original comment by nathanfr...@gmail.com on 16 Mar 2009 at 2:05