what does means this error “broken pipe”? [duplicate]

▼魔方 西西 提交于 2019-12-14 03:36:45

问题


Possible Duplicate:
TCP client-server SIGPIPE

I would like know what does this error mean?


回答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



来源:https://stackoverflow.com/questions/13643526/what-does-means-this-error-broken-pipe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!