当前位置:网站首页>测试时大量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
边栏推荐
- High imitation [Huawei consumer business official website] and wonderful animation analysis: practice embedding JS code in low-code platform
- prometheus监控mysql_galera集群
- [OC学习笔记]Block三种类型
- Installation and use of pnpm
- Redis分布式锁入门
- 为什么都推荐使用wordpress, 而不是 phpcms 这些国内的CMS呢?
- R language plotly visualization: use the plotly visualization model to predict the true positive rate (True positive) TPR and false positive rate (False positive) FPR curve under different thresholds
- 小说里的编程 【连载之二十五】元宇宙里月亮弯弯
- Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
- EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
猜你喜欢

How Engineers Treat Open Source --- A veteran engineer's heartfelt words

Stop mental exhaustion Daily sharing

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

Shell becomes canonical and variable

三维体尺测量

postman下载安装汉化及使用

C Language Basics_Union

Pycharm (1) the basic use of tutorial

PyCharm使用教程(较详细,图+文)
随机推荐
爬虫——爬虫初识、requests模块
Technology Cloud Report: To realize the metaverse, NVIDIA starts from building an infrastructure platform
The custom table form
What attributes and methods are available for page directives in JSP pages?
Shell becomes canonical and variable
(Note)阿克西斯ACASIS DT-3608双盘位硬盘阵列盒RAID设置
Wang Xuegang - compiled shipment line file
Shell变成规范与变量
A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?
location对象,navigator对象,history对象学习
EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
C语言基础_结构体
day——05 迭代器,生成器
52.【bool类型输入任何非0数值不为1的版本原因】
[OC学习笔记]Block三种类型
[ansible]playbook结合项目解释执行步骤
pnpm: Introduction
Biotinyl Cystamine | CAS: 128915-82-2 | biotin cysteamine
houdini 求出曲线的法向 切线以及副法线
unity pdg 设置隐藏不需要的节点以及实现自动勾选自动加载项