bugGNU Wget - Bugs: bug #52503, fails to try all available IP...

 
 

bug #52503: fails to try all available IP addresses

Submitter:  None
Submitted:  Sat 25 Nov 2017 04:21:31 PM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  Invalid
Privacy:  Public Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  1.18
Operating System:  GNU/Linux Reproducibility:  Every Time
Fixed Release:  None Planned Release:  None
Regression:  None Work Required:  None
Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 25 Nov 2017 06:16:10 PM UTC, comment #4: 

NP. Thanks for letting us know.

Tim Ruehsen <rockdaboot>
Group administrator
Sat 25 Nov 2017 05:49:29 PM UTC, comment #3: 

My apologies.  This is on the LEDE embedded router platform and indeed, the wget on it is actually libuclient.

I should have looked more closely.

Brian J. Murrell <brian_j_murrell>
Sat 25 Nov 2017 05:31:36 PM UTC, comment #2: 

Here wget tries the second IP as well (but the error is different);
$ wget --prefer-family=ipv6 'http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/base/Packages.gz'

Resolving downloads.lede-project.org (downloads.lede-project.org)... 2a01:4f8:202:43ea::3, 148.251.78.235
Connecting to downloads.lede-project.org (downloads.lede-project.org)|2a01:4f8:202:43ea::3|:80... failed: Network is unreachable.
Connecting to downloads.lede-project.org (downloads.lede-project.org)|148.251.78.235|:80... connected.
HTTP request sent, awaiting response... 200 OK

Since your messages look quite different - what version of Wget are you using ?

Tim Ruehsen <rockdaboot>
Group administrator
Sat 25 Nov 2017 04:36:54 PM UTC, comment #1: 

Naively, it seems like wget should do what browsers do, which is, I believe, trying all addresses.

Actually, current browsers use the "Happy Eyeballs" algorithm, doing a non-blocking connection start on one IPv4 address and simultaneously on one IPv6 address, and then using the connection that responds first, as this prevents long waits in the non-uncommon case where the host has an IPv6 address, the browser has IPv6 service, but some transit network doesn't carry IPv6, i.e., it appears that one can connect with IPv6, but any attempt is black-holed.

Dale Worley <worley>
Sat 25 Nov 2017 04:21:31 PM UTC, original submission:  

If wget resolves multiple ip addresses for a name it was given in a URL and a connection to the first IP address it tries fails, should it not go on to try other ip addresses returned rather than bombing out?

I.e.:

$ host downloads.lede-project.org
downloads.lede-project.org is an alias for downloads2.lede-project.org.
downloads2.lede-project.org has address 148.251.78.235
downloads2.lede-project.org has IPv6 address 2a01:4f8:202:43ea::3

$ wget 'http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/base/Packages.gz'
Connecting to 2a01:4f8:202:43ea::3:80
Connection error: Connection failed

why does it not also try 148.251.78.235?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by brian_j_murrell (Posted a comment)
  • -email is unavailable- added by rockdaboot (Posted a comment)
  • -email is unavailable- added by worley (Posted a comment)
  • -email is unavailable- added by brian_j_murrell
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-25 rockdaboot StatusNone Invalid
        Open/ClosedOpen Closed
    2017-11-25 brian_j_murrell Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code