ConnectionReset
ConnectionReset The connection was reset by the remote peer.
http://stackoverflow.com/questions/1434451/what-does-connection-reset-by-peer-mean
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.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
A 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.
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了