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

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-08 20:10:05       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-08 20:10:05       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-08 20:10:05       87 阅读
  4. Python语言-面向对象

    2023-12-08 20:10:05       96 阅读

热门阅读

  1. Flask 最佳实践(一)

    2023-12-08 20:10:05       48 阅读
  2. 解释区块链技术的应用场景和优势。

    2023-12-08 20:10:05       61 阅读
  3. LeetCode //C - 188. Best Time to Buy and Sell Stock IV

    2023-12-08 20:10:05       59 阅读
  4. 初识 OpenCV

    2023-12-08 20:10:05       64 阅读
  5. Leetcode 344. Reverse String

    2023-12-08 20:10:05       57 阅读
  6. rabbitmq的路由策略

    2023-12-08 20:10:05       60 阅读
  7. tomcat 如何优化?

    2023-12-08 20:10:05       56 阅读
  8. 数据库函数大全(更新中)

    2023-12-08 20:10:05       54 阅读
  9. 解决Qt发送信号指定重载

    2023-12-08 20:10:05       59 阅读
  10. Glide系列-生命周期的监听

    2023-12-08 20:10:05       52 阅读