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

NoèlKöthe INVALID.NOREPLY at gnu.org
Wed Jul 18 12:53:09 PDT 2007


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

                 Summary: wget ignores timeout on HTTPS connections
                 Project: GNU Wget
            Submitted by: nok
            Submitted on: Mittwoch 18.07.2007 um 21:53
                Category: User Interface
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.10.2
        Operating System: GNU/Linux
         Reproducibility: None
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: None

    _______________________________________________________

Details:

Hello,

http://bugs.debian.org/385506

"This is easy to reproduce, just start downloading a largish file with a
--read-timeout of a few seconds, and right in the middle drop traffic from
that server using iptables.

Stracing an HTTP connection shows nice timeout:

20:34:04 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
16384) = 1398
20:34:04 write(3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1398) = 1398
20:34:04 select(5, [4], NULL, NULL, {15, 0}) = 1 (in [4], left {14, 988000})
20:34:04 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
16384) = 1398
20:34:04 write(3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1398) = 1398
20:34:04 select(5, [4], NULL, NULL, {15, 0}) = 0 (Timeout)
20:34:19 close(4)                       = 0

While HTTPS just sits there forever, waiting:

20:28:38 read(4, "\30.\3051\330\307L\301%\206\312\347\326\277i&\250[\025"...,
3852) = 3852
20:28:39 write(3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
20:28:39 write(3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 12288) = 12288
20:28:39 select(5, [4], NULL, NULL, {15, 0}) = 1 (in [4], left {15, 0})
20:28:39 read(4, "\27\3\0011p", 5)      = 5
20:28:39 read(4,
"\314\247\266\315\235?K\210\217\317\0014F\\\371J\273*\252"..., 12656) = 1735
20:28:39 read(4, "xT\263pU=\354~W\225\344\237\271\237a%\22\327\326)D\231"...,
10921) = 1398
20:28:39 read(4,
"]\303\254\251\354\223#c\304\247E\260\33\326\362\376\374"..., 9523) = 1398
20:28:39 read(4,

Probably the timeout is not implemented in the routine which uses libssl...

Since the TCP internal timeout for an ESTABLISHED connection is very very
large as I remember, this can be very bad for situations where wget is
executed non-interactively (in my case, I update my dyndns entry using wget
and reset my wireless card in a loop, in case something bad happens to the
internet connection, which worked nice, until wget hanged this afternoon).
"

thx.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



More information about the wget-notify mailing list