1. 程式人生 > >Connection reset by peer的原因

Connection reset by peer的原因

經常出現的Connection reset by peer: 原因可能是多方面的,不過更常見的原因是:①:伺服器的併發連線數超過了其承載量,伺服器會將其中一些連線Down掉;②:客戶關掉了瀏覽器,而伺服器還在給客戶端傳送資料;③:瀏覽器端按了Stop
[10054] Connection reset by peer
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 preset 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.

相關推薦

Connection reset by peer原因

今天開了100個執行緒去連線server, read資料的時候出現了,read返回-1的情況,errno的值是104. 104應該是 connection reset by peer。 網路查詢知道, Connection reset by peer的常見原因: 1.

Connection reset by peer的常見原因

路由 可能 tcp 個數 exc 時間 ... 連接 tst 1,如果一端的Socket被關閉(或主動關閉,或因為異常退出而 引起的關閉),另一端仍發送數據,發送的第一個數據包引發該異常(Connect reset by peer)。 Socket默認連接60秒,60秒之內

Connection reset by peer的常見原因及解決辦法

1,如果一端的Socket被關閉(或主動關閉,或因為異常退出而 引起的關閉),另一端仍傳送資料,傳送的第一個資料包引發該異常(Connect reset by peer)。 Socket預設連線60秒,60秒之內沒有進行心跳互動,即讀寫資料,就會自動關閉連線

Connection reset by peer原因

經常出現的Connection reset by peer: 原因可能是多方面的,不過更常見的原因是:①:伺服器的併發連線數超過了其承載量,伺服器會將其中一些連線Down掉;②:客戶關掉了瀏覽器,而伺服器還在給客戶端傳送資料;③:瀏覽器端按了Stop[10054] Conne

nginx php fastcgi Connection reset by peer原因及解決辦法

 如果知道實際連線伺服器的併發客戶數沒有超過伺服器的承載量,則有可能是中了病毒或者木馬,引起網路流量異常。可以使用netstat-an檢視網路連線情況。 2)客戶關掉了瀏覽器,而伺服器還在給客戶端傳送資料; 3)瀏覽器端按了Stop;   這兩種情況一般不會影響伺服器。但是如果對異常資訊沒有特別處理,有可能在

LR回放https協議腳本失敗:[GENERAL_MSG_CAT_SSL_ERROR]connect to host "XXX" failed:[10054] Connection reset by peer [MsgId:MERR-27780]

網絡連接 advance sgid 服務器 vuser con run load sgi 最近做一個負載均衡項目的性能測試,使用LR錄制腳本協議為https協議,回放腳本時出現報錯: [GENERAL_MSG_CAT_SSL_ERROR]connect to host "

CentOS7使用ssh不能登錄,報錯:Read from socket failed: Connection reset by peer

read from socket failed: connection reset by peer使用xshell登錄CentOS7,不能登錄,使用另外一臺Linux主機,telent 22端口是同的,ssh連接報以下錯誤:Read from socket failed: Connection reset b

ECS雲主機SSH連接提示“Connection reset by peer”的解決辦法和解決思路

阿裏雲 運維思想 工單支持 三周前剛從上家公司換到新的公司,這家公司與上家公司相比對阿裏雲的雲計算環境更加的依賴,使用的ECS實例和其他服務如SLB、RDS、OSS等更多了一個數量級。這篇文章的背景就是為了解決阿裏雲ECS雲主機SSH連接的一個問題,從故障發現到故障排除到最後反思的一個詳細

CentOS7 yum的一次報錯" 14: curl#56 - "Recv failure: Connection reset by peer" "

yum1、故障現象[[email protected]/* */ src]# yum update Loaded plugins: fastestmirror, langpacks Could not retrieve mirrorlist 7&arch=x86_64&repo

connection reset by peer, socket write error問題分析

getc 主動 連接 返回 知識 可能 -- 成功 connect 上次寫《connection reset by peer, socket write error問題排查》已經過去大半年,當時把問題“敷衍”過去了。 但是此後每隔一段時間就會又想起來,baidu、googl

connection reset by peer問題總結及解決方案

net 方維 catch 火墻 tst buffer 整理 pos 在服務器 找遍了 中英文網站,翻遍了能找的角落,發現了出現故障的原因和原理,及改如何處理,這裏記錄下,希望能幫助到有需要的小夥伴,少走點彎路, 以上就整理內容: connection res

jumpserver開源跳板機用戶鏈接的時候終端顯示connection reset by peer

過去 客戶 跳板 鏈接 賬號 ica -- 映射 con 我們使用賬號鏈接的時候,在終端頁面顯示“connection reset by peer”,然後我們去看日誌信息,會顯示“FAILED: Authentication failed.FAILED: Authentic

Connection reset by peer原理解析

“Connection reset by peer”代表什麼?“Connection reset by peer”表示當前伺服器接受到了通訊對端傳送的TCP RST訊號,即通訊對端已經關閉了連線,通過RST訊號希望接收方關閉連線。 The remote server has sent you a RST p

ssh連線遠端伺服器:ssh_exchange_identification: read: Connection reset by peer

查閱資料這是伺服器超過使用者最大連線數,雲伺服器後臺遠端連線修改一下自動連線數: ----> -----> 輸入密碼遠端連線之後: 進入usr目錄,然後輸入:  vi /etc/ssh/sshd_config  按i編輯,修改這個引

Filebeat - Logstash connection reset by peer

2018-09-25T14:21:41.821+0800 ERROR logstash/async.go:252 Failed to publish events caused by: write tcp 127.0.0.1:45718->127.0.0.1:5044: write:

suse ssh連線拒絕,報錯 ssh_exchange_identification: read: Connection reset by peer

   操作報錯現象,ssh遠端伺服器,提示ssh_exchange_identification: read: Connection reset by peer  ,但是能夠ping的通  執行ssh -v [email protected]&n

下載標準庫libcxx出現svn: E000104: Error running context: Connection reset by peer的解決方案

使用svn co http://llvm.org/svn/llvm-project/libcxx/tags/RELEASE_500/final libcxx下載標準庫libcxx出現svn: E000104: Error running context: Connection reset b

docker exec failed!!error from pipe caused \"read parent: connection reset by peer\"問題

一、復現報錯: docker exec -it  wsqtest  bash rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container p

Redis連接出現Error: Connection reset by peer的問題是由於使用Redis的安全模式

現在網上一查出現安全模式的連線,基本都是要關閉服務端的操作,其實這種方式是不正確的,最有效的解決方式是使用stunnel進行安全模式的連線。 我碰到的問題是微軟雲(其實我不想用!)連線Redis,預設採用6380做為SSL埠,而微軟雲同時還會啟用非SSL埠6379,如果嫌其麻煩,可以用非SSL進行連線。

Java.io.IOException: Connection reset by peer問題定位

相信不少兄弟都碰到過這類問題。很不幸,今天本人負責的一個系統突然大量出現該類錯誤,本身系統沒有做修改。 一般第一眼看到這類錯誤基本上就可以確定是本系統作為服務端跟客服端的長鏈斷了並進行了重連,但是是跟那條鏈路呢?由於報錯中一點鏈路資訊都沒帶,就僅僅丟擲了一個異常給問題定位帶