[HP-UX]清空FIN_WAIT_2的连接
root@hpux# netstat -an |grep FIN
... note processes in FIN_WAIT_2
root@hpux# ndd -get /dev/tcp tcp_fin_wait_2_timeout # record this
0
root@hpux# ndd -set /dev/tcp tcp_fin_wait_2_timeout 30000 # ms? = 30s
root@hpux# ndd -get /dev/tcp tcp_fin_wait_2_timeout
30000
root@hpux# netstat -an |grep FIN
... note still have processes in FIN_WAIT_2
root@hpux# sleep 30
root@hpux# netstat -an |grep FIN
... should be gone now, or very soon
root@hpux# ndd -set /dev/tcp tcp_fin_wait_2_timeout 0
root@hpux# ndd -get /dev/tcp tcp_fin_wait_2_timeout
0
root@hpux#