1.992 - set $! to undef before doing IO (accept, read..).
On Winwdows a connection reset could cause SSL read error without setting $!, so make sure we don't keep the old value and maybe thus run into endless loop.