This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] option to prefer HTTP for downloads


Matthias,

On Tuesday 06 May 2008 12:05:41 Matthias Kaehlcke wrote:
> i just tried it, but without success. the log shows that crosstool-ng
> tries it again and again without falling back to http
[--SNIP--]

If you look carefully at the URLs in the log, you'll see that they are
different. FTP URLs are tried before HTTP, and as you can see from my log
snippet below, it works here:

[ALL  ]    --2008-05-06 14:59:25--  ftp://ftp.kernel.org/pub/linux/kernel/v2.2/linux-2.6.25.1.tar.bz2
[ALL  ]      (try: 3) => `linux-2.6.25.1.tar.bz2'
[ALL  ]    Connecting to ftp.kernel.org|204.152.191.37|:21... failed: Connection timed out.
[ALL  ]    Connecting to ftp.kernel.org|204.152.191.5|:21... failed: Connection timed out.
[ALL  ]    Giving up.
[ALL  ]
[DEBUG]    Trying "http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.1.tar.bz2";
[ALL  ]    --2008-05-06 14:59:45--  http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.1.tar.bz2
[ALL  ]    Resolving ftp.kernel.org... 204.152.191.5, 204.152.191.37

The problem is that connections timeout after 120s, which might sound long.

Just not to wait too long in my tests here, I shortened the timeout to 10s,
and blocked all FTP and HTTP traffic from my machine, and it worked: HTTP URLs
are tried in turn, after all FTP URLs have been tried first.

May be we should shorten this timeout to something more humanly acceptable,
still accounting for those slow servers and networks. Would 30 seconds seem
reasonable enough? Or even 15s? I guess too low a value will have the adverse
effect of giving up on legitimate slow connections.

> thanks for working on this issue!

:-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | * _ * | / \ HTML MAIL    |  """  conspiracy.  |
°------------------------------°-------°------------------°--------------------°


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]