博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ConnectionReset
阅读量:4568 次
发布时间:2019-06-08

本文共 1765 字,大约阅读时间需要 5 分钟。

ConnectionReset The connection was reset by the remote peer.

 

It's fatal. The remote server has sent you a RST packet, which indicates an immediate dropping of the connection, rather than the usual handshake.

This bypasses绕开 the normal half-closed state transition过渡,转变

"Connection reset by peer" is the TCP/IP equivalent of slamming砰地关上;猛力抨击 the phone back on the hook. 
It's more polite than merely仅仅 not replying, leaving one hanging. 
But it's not the FIN-ACK expected of the truly polite TCP/IP converseur. 
 

This can happen if the other side crashes and then comes back up,

 

This means that a TCP RST was received and the connection is now closed.

This occurs when a packet is sent from your end of the connection but the other end does not recognize the connection;

it will send back a packet with the RST bit set in order to forcibly强制地 close the connection.

 

This can happen if the other side crashes and then comes back up, or if it calls close() on the socket while there is data from you in transit运输,

and is an indication to you that some of the data that you previously sent may not have been received.

 

It is up to you whether that is an error;

if the information you were sending was only for the benefit of the remote client then it may not matter that any final data may have been lost.

However you should close the socket and free up any other resources associated with the connection.

 

基础概念

RST packet

RST packet is sent either in the middle of the 3-way handshake when the server rejects the connection or is unavailable OR in the middle of data transfer when either the server or client becomes unavailble or rejects further communication without the formal 4-way TCP connection termination process.

 

 

转载于:https://www.cnblogs.com/chucklu/p/4274192.html

你可能感兴趣的文章
第九节:web爬虫之urllib(五)
查看>>
三种循环的介绍
查看>>
浅谈Sql Server中的 隔离层级(Isolation Levels)
查看>>
{{ }} 的替换 delimiters
查看>>
C语言习题三
查看>>
94. Binary Tree Inorder Traversal
查看>>
MongoDB安装及多实例启动
查看>>
[css]我要用css画幅画(三)
查看>>
JSP与Servlet之间传值
查看>>
java第五次上机(异常)
查看>>
eletron打包
查看>>
Sencha touch 开发系列:组件布局
查看>>
MySQL的时间进位问题
查看>>
EasyShortcut Easyshortcut easyShortcut 简介
查看>>
可以直接调用的纯虚函数
查看>>
POJ 2975 Nim 尼姆博弈
查看>>
vue 过渡效果
查看>>
url 地址含参数较多如何拼接
查看>>
UIContainerView纯代码实现及原理介绍
查看>>
iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
查看>>