此错误“断管”是什么意思? [英] what does means this error "broken pipe"?

查看:175
本文介绍了此错误“断管”是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:


Possible Duplicate:
TCP client-server SIGPIPE

I would like know what does this error mean?

解决方案

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

这篇关于此错误“断管”是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆