lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Lynx connect_timeout issue


From: Royi Porat
Subject: Re: [Lynx-dev] Lynx connect_timeout issue
Date: Mon, 11 Mar 2013 14:43:08 +0200

Hi Thomas,
Thanks a lot for your prompt reply!
I'm not sure I know how to "compile a debug-executable" /-:
However, I was able to workaround this using a while loop that kills a lynx process that is running more than n seconds. This way the 'problematic URL' is being waived out and my script continues (which is what I wanted to achieve here). 

Thanks again!
BR, Royi


2013/3/11 Thomas Dickey <address@hidden>
On Sun, Mar 10, 2013 at 11:34:05PM +0200, Royi Porat wrote:
> 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?

not that I recall - the last time there was discussion of timeouts was
a few years ago (and the issue was that the timeout being discussed was
a different feature than that set by the option).

> am I doing anything wrong?

Is it hanging predictably on some urls?  (something I could test...).
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-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]