Connection reset
[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
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!