Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Large HTTPS POST hangs with HTTP::Daemon::SSL

by zwon (Abbot)
on May 01, 2009 at 14:32 UTC ( #761302=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://761302]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-08-03 06:34 GMT
Find Nodes?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)

    Results (33 votes). Check out past polls.