当前位置:网站首页>测试时大量TIME_WAIT
测试时大量TIME_WAIT
2022-08-02 08:16:00 【Cliven_】
在进行TCP短连接测试时
TCP客户端在段时间内向服务端建立大量的连接
在程序运行一段时间后出现 connection refusaued 错误。
这是由于客户端每建立一个TCP连接需要一个端口,即便客户端关闭了TCP连接完成了4次挥手,操作系统任然会保留一段时间的这个连接。
见 [1]
该问题可以通过配置Linux的端口重用参数来实现对处于 TIME_WAIT 状态下的端口的重用。
sudo echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse
参考文献
[1]. golang 大量 TIME_WAIT . 明月几时有 . 2019-11 . https://zjj2wry.github.io/post/golang/time-wait/
[2]. linux . man . https://man7.org/linux/man-pages/man7/tcp.7.html
边栏推荐
- 小说里的编程 【连载之二十三】元宇宙里月亮弯弯
- HCIP笔记十六天
- [OC学习笔记]Block三种类型
- PyQt5 (a) PyQt5 installation and configuration, read from the folder and display images, simulation to generate the sketch image
- 文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
- CASA模型、CENTURY模型应用与案例分析
- MySQL Workbench 安装及使用
- location对象,navigator对象,history对象学习
- USACO美国信息学奥赛竞赛12月份开赛,中国学生备赛指南
- JSP中page指令的import命令具有什么功能呢?
猜你喜欢
location对象,navigator对象,history对象学习
ip地址那点事(二)
商业智能平台BI 商业智能分析平台 如何选择合适的商业智能平台BI
王学岗-编译出运行的文件
C语言_指针
血气方刚的年轻小伙竟去做家政小哥,是怎样成功逆袭转行的
Biotin hydrazide HCl|CAS:66640-86-6|生物素-酰肼盐酸盐
What is NoSQL?Databases for the cloud-scale future
Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
C Language Basics_Union
随机推荐
prometheus监控mysql_galera集群
day_05_pickel 和 json
redis-desktop-manager下载安装
解决IDEA安装安装插件慢问题
Mysql Mac版下载安装教程
postman下载安装汉化及使用
【电子电路】长按键拉低电平,适用在有休眠机制的MCU但是没有看门狗,一个按键多个功能场景下使用
JSP中page指令的import命令具有什么功能呢?
小说里的编程 【连载之二十四】元宇宙里月亮弯弯
High imitation [Huawei consumer business official website] and wonderful animation analysis: practice embedding JS code in low-code platform
MySQL 中 count() 和 count(1) 有什么区别?哪个性能最好?
What is the function of page directive contentPage/pageEncoding in JSP page?
第3周学习:ResNet+ResNeXt
优炫数据库的逻辑复制怎么样?
mysqldump --set-gtid-purged=OFF
离线部署通过tiup 配置好topology.yaml文件指定PD TV TIDBserver 是不是会自动在其他机器创建好对应得模块?
PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案
Application and case analysis of CASA model and CENTURY model
Postman download localization of installation and use
location对象,navigator对象,history对象学习