http://www.perlmonks.org?node_id=566911


in reply to Re^3: syswrite and closed sockets (shutdown)
in thread syswrite and closed sockets

Thanks for the tip. Yes, my test script was able to detect the server shutdown, on syswrite, after 10 seconds sleep. This insight helped me build a workaround. Thanks.