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 <[email protected]> > 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 <[email protected]> > http://invisible-island.net > ftp://invisible-island.net > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAlE9HJYACgkQcCNT4PfkjtvSHQCgqjKdLrwx2k1EYkMb0S9nBkGB > /QQAoIpLjfEZCbbEvf0m27MIWEyfeu9T > =ddB/ > -----END PGP SIGNATURE----- > >
_______________________________________________ Lynx-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lynx-dev
