Bug #66605 [Dup]: socket_write suspends execution

From: Date: Wed, 05 Feb 2014 09:39:04 +0000
Subject: Bug #66605 [Dup]: socket_write suspends execution
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184159@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66605&edit=1 ID: 66605 User updated by: jitesh dot prajapati at infostretch dot com Reported by: jitesh dot prajapati at infostretch dot com Summary: socket_write suspends execution Status: Duplicate Type: Bug Package: Sockets related -Operating System: Cent OS 6 +Operating System: Cent OS 6/Ubuntu PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Hi Executive, I am frequently writing into sockets (I can say 3times in a sec.). It works fine, but after some time it wait to write (socket_write) and it does not able to write because of some reason. Does it buffer full issue or something else? Thanks. Previous Comments: ------------------------------------------------------------------------ [2014-01-29 18:20:13] requinix@php.net Duplicate of bug #66572 ------------------------------------------------------------------------ [2014-01-29 12:27:27] jitesh dot prajapati at infostretch dot com 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 this bug report at https://bugs.php.net/bug.php?id=66605&edit=1

« previous php.bugs (#184159) next »