tcping icon indicating copy to clipboard operation
tcping copied to clipboard

是否可以添加 -t参数 一直ping下去呢

Open shoaly opened this issue 3 years ago • 5 comments

如标题所示

shoaly avatar Oct 28 '20 07:10 shoaly

看源码已经发现了, 次数设置成0就可以了, 默认反而ping4次, 个人感觉默认是0次好一些, 更接近正常的ping

shoaly avatar Oct 28 '20 07:10 shoaly

看源码已经发现了, 次数设置成0就可以了, 默认反而ping4次, 个人感觉默认是0次好一些, 更接近正常的ping

这个和 PING 还是不一样,PING 是 ICMP 协议,不会有啥副作用,tcping 是基于 TCP 三次握手来的,如果一直不停,会给本机带来大量的 TIME_WAIT

cloverstd avatar Oct 29 '20 02:10 cloverstd

我理解 这个每一次"tcping" 是独立的吧, 都是完整的一波三次握手断开了的... 为什么会带来 time_wait呢

shoaly avatar Oct 29 '20 02:10 shoaly

我理解 这个每一次"tcping" 是独立的吧, 都是完整的一波三次握手断开了的... 为什么会带来 time_wait呢

断连接会带来 TIME_WAIT

cloverstd avatar Oct 29 '20 02:10 cloverstd

1秒ping一次频率也不高, 那些断开残留剩下的time_wait会 自己消失掉吧,

shoaly avatar Oct 29 '20 03:10 shoaly