How to handle socket broken pipe [error 32] in php?
I have a socket handler class which is used to communicate to a client with a specific IP and port with the help of several socket functions. The first time I am using writetosocket(), it's working perfectly. But when I restart the client (with ip and port) and try to use writetosocket() it returns broken pipe error with error code 32 after successful execution of the socket_write function. I am getting this error when I am writing data on socket. I read some solutions and tried the most common solution which is to use socket_shutdown and socket_close to terminate the socket connection properl
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.