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

 
 

bug #52503: fails to try all available IP addresses

Submitted by:  None
Submitted on:  Sat 25 Nov 2017 04:21:31 PM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Invalid
Privacy: PublicAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 1.18
Operating System: GNU/LinuxReproducibility: Every Time
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

NP. Thanks for letting us know.

Tim Ruehsen <rockdaboot>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Nov 2017 06:16:10 PM UTCrockdabootStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sat 25 Nov 2017 04:22:53 PM UTCbrian_j_murrellCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1