当前位置:网站首页>测试时大量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
边栏推荐
- MFC最详细入门教程[转载]
- Redisson报异常attempt to unlock lock, not locked by current thread by node id解决方案
- 力扣:第 304 场周赛
- JSP中page指令的import命令具有什么功能呢?
- 二分类和多分类
- 十大免费cms建站系统介绍推荐
- Spark 系统性学习笔记系列
- Postman download localization of installation and use
- Biotin-EDA|CAS:111790-37-5| 乙二胺生物素
- 文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
猜你喜欢
![Detailed explanation of calculation commands in shell (expr, (()), $[], let, bc )](/img/3c/5cc4d16b9b525997761445f32802d5.png)
Detailed explanation of calculation commands in shell (expr, (()), $[], let, bc )

Biotin - LC - Hydrazide | CAS: 109276-34-8 | Biotin - LC - Hydrazide

cas:139504-50-0 美登素DM1|Mertansine|

BGP通过MPLS解决路由黑洞

Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform

(Note)阿克西斯ACASIS DT-3608双盘位硬盘阵列盒RAID设置
![[OC学习笔记]Block三种类型](/img/40/edf59e6e68891ea7c9ab0481fe7bfc.png)
[OC学习笔记]Block三种类型
![MFC最详细入门教程[转载]](/img/5d/655e75f6b8a547fefe0137a9b11536.png)
MFC最详细入门教程[转载]

如何建立私域流量?私域流量对企业有什么好处?
![[OC学习笔记]ARC与引用计数](/img/56/033cfc15954567d63d987d91ca8d63.png)
[OC学习笔记]ARC与引用计数
随机推荐
In a recent build figure SLAM, and locate the progress
redis-desktop-manager下载安装
抓包工具Charles修改Response步骤
Redisson的看门狗机制
Postman download localization of installation and use
按键控制流水灯(计时器)
MySQL Workbench 安装及使用
设置 height: auto 却无法触发 transition 动画的解决方案
location对象,navigator对象,history对象学习
类和对象【下】
How Engineers Treat Open Source --- A veteran engineer's heartfelt words
A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?
shell中计算命令详解(expr、(())、 $[]、let、bc )
redis高阶使用之Redisson分布式锁源码解析
小说里的编程 【连载之二十二】元宇宙里月亮弯弯
AttributeError: module ‘clr‘ has no attribute ‘AddReference‘
etcd实现大规模服务治理应用实战
How to use postman
What is NoSQL?Databases for the cloud-scale future
Flink 监控指南 被动拉取 Rest API