Bug #66605 [NEW]: socket_write suspends execution
| From: | jitesh dot prajapati at infostretch dot com | Date: | Wed, 29 Jan 2014 12:27:28 +0000 |
| Subject: | Bug #66605 [NEW]: socket_write suspends execution | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-184074@lists.php.net to get a copy of this message | ||
From: jitesh dot prajapati at infostretch dot com
Operating system: Cent OS 6
PHP version: Irrelevant
Package: Sockets related
Bug Type: Bug
Bug description:socket_write suspends execution
Description:
------------
Hello Executive,
I have implemented web socket server in php.
Server works fine for some amount of time (I can say 15-20 mins), then
after at some point execution of script got suspended and it goes to
some wait/deadlock condition.
I have put debugging points and found that it goes to
suspend/wait/deadlock condition on socket_write function.
I tried many ways but do not luck.
Can you recommend any solution for same?
Test script:
---------------
http://202.131.96.147/test/wevsocketclass.php
(Here is our server code)
Expected result:
----------------
Server must be working continuously and do not stuck at any point.
Actual result:
--------------
Server goes to suspend/stuck/wait/deadlock situation intermittently.
--
Edit bug report at https://bugs.php.net/bug.php?id=66605&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66605&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66605&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66605&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66605&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66605&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66605&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66605&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66605&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66605&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66605&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66605&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66605&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66605&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66605&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66605&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66605&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66605&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66605&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66605&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66605&r=mysqlcfg