Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144881 - please fix the annoying server timeout handling
Summary: please fix the annoying server timeout handling
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-23 10:35 UTC by Carsten Lohrke (RETIRED)
Modified: 2006-08-23 11:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2006-08-23 10:35:29 UTC
When a server is not reachable Portage tries for more than a dozen minutes to recht the server. Please change that drastically. I mean, we're not in the stone age with 1200 baud modems and bad lines. ;)

Please change it to try to connect for max. 20 sec and two or three retries. 


example:

carsten@iglu kscope $ ebuild kscope-1.4.1.ebuild digest
>>> Downloading 'http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/kscope-1.4.1.tar.gz'
--19:27:21--  http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/kscope-1.4.1.tar.gz
           => `/usr/portage/distfiles/kscope-1.4.1.tar.gz'
Resolving www.ibiblio.org... 152.2.210.80
Connecting to www.ibiblio.org|152.2.210.80|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/kscope-1.4.1.tar.gz [following]
--19:27:22--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/kscope-1.4.1.tar.gz
           => `/usr/portage/distfiles/kscope-1.4.1.tar.gz'
Resolving distro.ibiblio.org... 152.46.7.109
Connecting to distro.ibiblio.org|152.46.7.109|:80... failed: Connection timed out.
Retrying.

--19:28:23--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/kscope-1.4.1.tar.gz
  (try: 2) => `/usr/portage/distfiles/kscope-1.4.1.tar.gz'
Connecting to distro.ibiblio.org|152.46.7.109|:80... failed: Connection timed out.
Retrying.

--19:29:25--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/kscope-1.4.1.tar.gz
  (try: 3) => `/usr/portage/distfiles/kscope-1.4.1.tar.gz'
Connecting to distro.ibiblio.org|152.46.7.109|:80... failed: Connection timed out.
Retrying.

--19:30:28--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/kscope-1.4.1.tar.gz
  (try: 4) => `/usr/portage/distfiles/kscope-1.4.1.tar.gz'
Connecting to distro.ibiblio.org|152.46.7.109|:80... failed: Connection timed out.
Retrying.

--19:31:32--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/kscope-1.4.1.tar.gz
  (try: 5) => `/usr/portage/distfiles/kscope-1.4.1.tar.gz'
Connecting to distro.ibiblio.org|152.46.7.109|:80... failed: Connection timed out.
Giving up.

No digest file available and download failed.


That make half an hour, if you hit to dead servers in a row.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2006-08-23 10:43:13 UTC
make sure your make.globals is up2date and you haven't set those values yourself in make.conf (via FECTH/RESUMECOMMAND), the current defaults are 60s timeout and 5 retries, if you think that's too much you can always change it in make.conf.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-23 11:01:38 UTC
sys-apps/portage-2.1.1_pre5-r3

/etc/make.globals is from 21. this months, not touched manually, wget parameters are -t 5 -T 60 and i don't use a custom FETCHCOMMAND via make.conf.


Imho five retries is definitely too much and -T sets more than a single timeout according to the wget man page:

-T seconds
--timeout=seconds
    Set the network timeout to seconds seconds.  This is equivalent to specifying --dns-timeout, --connect-time-out, and --read-timeout, all at the same time.


I guess the timeouts accumulate...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-23 11:18:55 UTC
It's already been changed wrt Bug 101196. Gradually lowering the retries/timeout to almost zero doesn't solve the real problem (dead mirrors in thirdpartymirrors list) in any way.

We should rather focus on getting Bug 129015 fixed (and producing some script that automates this). Meanwhile, I've cleaned up GNU mirrors list (someone see Bug 144831 and commit it), will try to cleanup the others as well until there's a better solution to Bug 129015.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-23 11:29:35 UTC
Jakub, cleaning up the mirror list doesn't solve the problem, when a server is temporary down. While five retries are excessive imho, I redraw this bug, since it's probably more a bug with wget's handling of --timeout or with communication between server and client.