sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[Sm-Sorcery-Bugs] [Bug 1655] New: netselect may returns an empty list (fix included)
- From: bugzilla-daemon AT metalab.unc.edu
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [Sm-Sorcery-Bugs] [Bug 1655] New: netselect may returns an empty list (fix included)
- Date: Mon, 11 Nov 2002 06:15:19 -0500
http://bugs.sourcemage.org/show_bug.cgi?id=1655
Summary: netselect may returns an empty list (fix included)
Product: Sorcery
Version: Devel
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: mlubrano AT sourcemage.org
Hi,
If all websites are "unreachable", netselect returns an empty list, wich makes
summon abord and fail downloading.
But, a site may block ICMP requests, and serve files as well.
(This may be even worse if your company's FW blocks ICMP).
Add the following code before "debug "liburl" "shortedList: $shortedList"" in
url_rank() funciton in liburl file:
# if all sites are ICMP Unreachable, return the unshorted list instead of
null.
if [ "$shortedList" == "" ]; then
shortedList=$urlList
fi
See the result:
BEFORE:
root@nostromo:~# summon gbuffy
Downloading source file gbuffy-0.2.4.tar.gz for spell gbuffy
/usr/sbin/summon: line 243: lock_resource: command not found
Looking for the fastest mirror site... /usr/sbin/summon: line 246:
unlock_resource: command not found
done.
Download of gbuffy-0.2.4.tar.gz for spell gbuffy failed
AFTER:
root@nostromo:~# summon gbuffy
Downloading source file gbuffy-0.2.4.tar.gz for spell gbuffy
/usr/sbin/summon: line 243: lock_resource: command not found
Looking for the fastest mirror site... /usr/sbin/summon: line 246:
unlock_resource: command not found
done.
--12:07:45-- http://www.fiction.net/blong/programs/gbuffy/gbuffy-0.2.4.tar.gz
=> `gbuffy-0.2.4.tar.gz'
Connecting to 192.168.1.254:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 81,700 [application/x-tar]
100%[=======================================================>] 81,700
77.92M/s ETA 00:00
12:07:45 (77.92 MB/s) - `gbuffy-0.2.4.tar.gz' saved [81700/81700]
Bye,
Mat.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [Sm-Sorcery-Bugs] [Bug 1655] New: netselect may returns an empty list (fix included), bugzilla-daemon, 11/11/2002
Archive powered by MHonArc 2.6.24.