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


in reply to Large HTTPS POST hangs with HTTP::Daemon::SSL

I've just reproduced the problem using 37k of data. It looks like select-sysread loop in HTTP::Daemon doesn't work correctly with IO::Socket::SSL. That's because select in _need_more tests real filehandle and sysread reads from IO::Socket::SSL object which is buffered, so

sysread($self, $_[0], 2048, length($_[0]))
may actually read more than 2048 bytes from the socket and subsequent select on socket will hang.

Removing Timeout as proposed by derby solves the problem.