-2

Possible Duplicate:
TCP client-server SIGPIPE

I would like know what does this error mean?

enter image description here

Community
  • 1
  • 1

1 Answers1

1

You are using sockets and Http protocol.

It simply means your TCP connection has been closed by the other end or broken due to some other reason. By broken it means a 3 way handshake is required again before starting data transfer. As mentioned in the comments, being on listening end i.e. server, you normally cannot initiate the connection. So should simply close this socket and proceed ahead.

However, if you were a client, you should probably call api similar to connect again and proceed once it is successful.

Broken pipe on SO

Community
  • 1
  • 1
fkl
  • 5,412
  • 4
  • 28
  • 68
  • As this HTTP and as this is the server end, he can't just redo the handshake. He should just abandon the response and the client. – user207421 Nov 30 '12 at 11:40
  • Agreed. I meant handshake would be required again. Not referring to the listening end initiating it. Will edit to clarify that. Thanks – fkl Nov 30 '12 at 12:11