之间有区别吗?
shutdown($socket, 0) if $socket;
shutdown($socket, 2) if $socket;
close($socket) if $socket;
和
shutdown($socket, 2) if $socket;
close($socket) if $socket;
也有区别
shutdown($socket, 1) if $socket;
shutdown($socket, 2) if $socket;
close($socket) if $socket;
和
shutdown($socket, 2) if $socket;
close($socket) if $socket;
最后还需要close
吗?