in reply to Re^2: IO::Socket disconnects in loop
in thread IO::Socket disconnects in loop

Me bad, I thought the server was the writer.