|
From: | Royi Porat |
Subject: | Re: [Lynx-dev] Lynx connect_timeout issue |
Date: | Mon, 11 Mar 2013 14:43:08 +0200 |
On Sun, Mar 10, 2013 at 11:34:05PM +0200, Royi Porat wrote:not that I recall - the last time there was discussion of timeouts was
> Dear Lynx developers,
> I'm using lynx v2.8.7 rel.1 in my shell script running on cygwin under
> windows 7 64bit.
> my script basiclly runs in a loop on various URLs with lynx -dump option
> (to parse the text only).
> the problem is that somethimes when lynx freezes or getting hanged,
> the connect_timeout does not seem to be enforced :-/
> Is that a known issue?
a few years ago (and the issue was that the timeout being discussed was
a different feature than that set by the option).
Is it hanging predictably on some urls? (something I could test...).
> am I doing anything wrong?
If not, you might be able to compile a debug-executable and when it
hangs, use gdb to attach that process and find where it is hanging.
The logic in HTDoConnect (where the option applies) has not changed
much for some time. Essentially it sets the socket to non-blocking
so that it can do the timeout's.
--
>
> here's the lynx command from my script:
>
> lynx -display_charset:iso-8859-8 -connect_timeout=5 -useragent=$UA -dump
> $URL > $CITY_OUT
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAlE9HJYACgkQcCNT4PfkjtvSHQCgqjKdLrwx2k1EYkMb0S9nBkGB
/QQAoIpLjfEZCbbEvf0m27MIWEyfeu9T
=ddB/
-----END PGP SIGNATURE-----
[Prev in Thread] | Current Thread | [Next in Thread] |