免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1269 | 回复: 0
打印 上一主题 下一主题

Reasons of "Connections reset by peer" [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-14 18:39 |只看该作者 |倒序浏览

Connection

reset

by

peer is a tough one because it can be caused
by

so many things. In all cases, the server determines that the socket is no longer
good and closes it from its side.
Read Error
Scenario: Mary couldn't make out what Joe was
saying anymore, so she hung up rather than lose his messages (data).
A read
error occurs when a server cannot successfully read from a user's client.
Servers gather information from the client
by

text, setup, and other items.When the server receives an error when reading from
a client, it then disconnects the user, resulting in a read error quit
message.
Write Error
Scenario: Mary was trying to talk to Joe but
didn't think she was getting through, so she hung rather than lose his messages
(data).
A write error occurs when a server cannot successfully write to a
user's client. When the server receives information, it usually responds with
information of its own. When the server receives an error when writing to a
client, it then disconnects the user, resulting in a write error quit message
similar to the read error format.
Ping Timeout Error
Scenario: Mary, having been raised in
a household with too many kids and always craving attention, keeps asking to
make sure that Joe is still on the line and listening. If he doesn't reply fast
enough to suit her, she hangs up.
Servers automatically ping users at a p
reset

time. The reason for this is to ensure the client is still connected to the
server. When you see "PING? PONG!" results in your status window, it means the
server has pinged your client, and it has responded back with a pong to ensure
the server that you are still connected. When this does not happen and you
disconnect without the server's knowledge, the server will automatically
disconnect the user when it does not receive a response, resulting in a ping
timeout. Ping timeouts occur to EVERYONE.
Broken pipe Error
Scenario: Mary had picked up a sticky
note with a message she needed to relay to Joe, but somehow between her hand and
her mouth, the message got misplaced. Mary was trying to talk to Joe but didn't
think she was getting through, so she hung up rather than lose his messages
(data).
A broken pipe error occurs when the server knows it has a message
but can't seem to use its internal data link to get the data out to the
socket.
Miscellaneous
Scenario: Lots of other reasons; perhaps
the operator broke in and gave Mary a message that made her doubt the validity
of the call so she hung up.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/52953/showart_422339.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP