wiki:jazz/11-04-15

2011-04-15

netstat

  • 加一個 -o 參數可以看到 timewait 還剩下多久。
  • 謎:明明已經把 net.ipv4.tcp_fin_timeout、net.ipv4.netfilter.ip_conntrack_tcp_timeout_fin_wait、net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait 都調到 10 秒了,為啥還是有 60 附近的秒數哩?!
    ~$ netstat -tnao | cut -b 42- |grep TIME_WAIT | sort
       123.117.180.2:47670     TIME_WAIT   timewait (24.27/0/0)
       123.117.180.2:47687     TIME_WAIT   timewait (7.83/0/0)
       123.117.180.2:47688     TIME_WAIT   timewait (7.99/0/0)
       123.117.180.2:47689     TIME_WAIT   timewait (12.66/0/0)
       123.117.180.2:47690     TIME_WAIT   timewait (20.88/0/0)
       123.117.180.2:47736     TIME_WAIT   timewait (13.10/0/0)
       123.117.180.2:47759     TIME_WAIT   timewait (33.21/0/0)
       123.117.180.2:47761     TIME_WAIT   timewait (28.48/0/0)
       123.117.180.2:47793     TIME_WAIT   timewait (33.87/0/0)
       123.117.180.2:47804     TIME_WAIT   timewait (47.01/0/0)
       123.117.180.2:47858     TIME_WAIT   timewait (44.61/0/0)
       123.117.180.2:47865     TIME_WAIT   timewait (42.52/0/0)
       123.117.180.2:47971     TIME_WAIT   timewait (51.43/0/0)
       123.117.180.2:47979     TIME_WAIT   timewait (52.00/0/0)
       123.117.180.2:47990     TIME_WAIT   timewait (53.79/0/0)
       123.117.180.2:47992     TIME_WAIT   timewait (53.89/0/0)
       163.21.245.128:50304    TIME_WAIT   timewait (11.30/0/0)
       163.21.245.128:50305    TIME_WAIT   timewait (13.62/0/0)
    

Multicast Socket Programming

infographics

Last modified 13 years ago Last modified on May 19, 2011, 6:27:34 PM