Open triska opened 7 years ago
As another test case, the default timeout of 60 seconds becomes 2 minutes, likely due to the same issue.
I think this issue is a good candidate to look into before the stable release, since reliable timeouts help to increase robustness.
My suspicion is that somehow the low-level stuff needs to timeout twice before it gets through the SSL layer. Just a factor 2 off isn't that vital. Typically timeout values are nearly random educated guesses anyway.
When I set
timeout/1
in an HTTPS server, I get about twice the timeout that I actually set.As a test case, place
https_server.pl
inpackages-ssl
, consisting of:Start the server with:
Then, connect to the server via:
After about 10 seconds, I get: