Monday, 9 September 2013

phpCgiHandler. Exception: java.net.SocketException: Broken pipe

phpCgiHandler. Exception: java.net.SocketException: Broken pipe

I have a javascript app running on a mobile device (as a web server) that
performs several web services locally for each execution. The web services
are php codes. It works fine for small data. But, when the computation and
time grows, the client raises the POST FAILED error. I checked the PhP log
file and found phpCgiHandler. Exception: java.net.SocketException: Broken
pipe exception error.
I searched and found quiet several questions about this problem in stack
overflow, but non of them provide solution to this problem. According to
the answers, the error raise because the connection will be closed after
120 seconds and in my case the 120 second already reached so the
connection is closed before the call is finished.
In this case, can I set client/server not to close the connection? Similar
to a parameter in php.ini that we can perform some runtime setting, is
there anything we can do to avoid the connection dies after 120 seconds?
Sorry for being old question. I hope I can get solution of how to avoid it.

No comments:

Post a Comment