$r_socket = IO::Socket::INE T->new(
PeerAddr => "10.0.26.78 ",
PeerPort => 17990,
Proto => 'tcp',
Timeout => 1
);
............... .......
if ($r_socket && $r_socket->connected()) {
close($r_socket );
}
after close($r_socket ), i use netstat -an to check the connecting list.
i found "TCP 10.0.28.117:499 8 10.0.26.78:1799 0 TIME_WAIT"
how to close the socket connection completely?
PeerAddr => "10.0.26.78 ",
PeerPort => 17990,
Proto => 'tcp',
Timeout => 1
);
............... .......
if ($r_socket && $r_socket->connected()) {
close($r_socket );
}
after close($r_socket ), i use netstat -an to check the connecting list.
i found "TCP 10.0.28.117:499 8 10.0.26.78:1799 0 TIME_WAIT"
how to close the socket connection completely?
Comment