Connection reset

2023-12-13 04:45:29

[oswatch@yyjk tmp]$ cat test_conn.py

import SocketServer
import socket
import time
import sys
reload(sys)
print time.ctime()
sys.setdefaultencoding('utf-8')
import re
host='10.99.32.16'

port=8010
bufsize=10240
addr=(host,port)
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.settimeout(2)
s.connect((host,port))
s.send('aaaa')
s.send('aaaa')
s.send('aaaa')
s.recv(1000)
[oswatch@yyjk tmp]$ python test_conn.py
Fri Dec ?8 19:00:55 2023
Traceback (most recent call last):
? File "test_conn.py", line 21, in <module>
? ? s.recv(1000)
socket.error: [Errno 104] Connection reset by peer
[oswatch@yyjk tmp]$ telnet 10.99.32.16 8010
Trying 10.99.32.16...
Connected to 10.99.32.16.
Escape character is '^]'.
Connection closed by foreign host.
[oswatch@yyjk tmp]$

10.99.32.16 F5下负载的应用都已经关闭,这时候报connect reset

文章来源:https://blog.csdn.net/zhaoyangjian724/article/details/134885525
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。