[wget-notify] [bug #20523] wget ignores timeout on HTTPS connections

Rick Schultz INVALID.NOREPLY at gnu.org
Fri Feb 22 20:12:34 PST 2008


Follow-up Comment #2, bug #20523 (project wget):

I ran into this today in 1.11.  I applied John's patch, but I was seeing it
hang past the handshake during reads.

To reproduce, start wget downloading over ssl with a timeout set:
 wget --timeout=10 -O /dev/null https://...
Then drop the interface:
 ifconfig eth0 down

Over http, the connection times out correctly; over https, it hangs.

Building on John's proposal to use run_with_timeout(), I wrapped
openssl_read() as well.  This solves the problems I was having.  I agree that,
for correctness, we should probably wrap openssl_write() as well, although I
don't have a failing test case.

(file #15097)
    _______________________________________________________

Additional Item Attachment:

File name: openssl-1.11-sslreadtimeout.patch Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20523>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



More information about the wget-notify mailing list