Re: st_connect timeout problem

[email protected] Fri, 16 Apr 2004 20:14:35 +0000
Newsgroups gmane.comp.lib.state-threads.user
Message-ID <041620042014.24626.40803EAB00061367000060322200758942FF978C9A919A@comcast.net>
Ron,

Can you extract a reproducible test case (small fragment) from
your application and post/email source code? Then we can take a
look at it and investigate.

--Gene
> Hello,
> 
> I am writing an application that does the following:
> 
> every minute:
> 
> - read a list of websites/URLs
> - connect to each of them
> - retrieve some info from them
> - close connection
> 
> I am using st-1.4 compiled with USE_POLL on redhat
> linux 9 on i386.
> 
> The problem: one of the sites in the list is
> firewalled/unreachable, and that's why I use a timeout
> parameter of 50 seconds to st_connect.
> 
> Before I used this parameter, by program hang for
> 4 minutes on that particular site before finishing
> the main loop.
> 
> But since I added the timeout parameter another strange
> thing happened: everything works but after 4 iterations
> of the main loop (so 4 minutes) most connections
> suddenly get ETIME on st_connect, and after that
> I have an irregular pattern of thing going right
> and things going wrong.
> 
> Does this ring a bell with anyone? Or should I
> post this to -devel?
> 
> Thanks,
> Ron Arts
> 
> -- 
> Netland Internet Services
> bedrijfsmatige internetoplossingen
> 
> http://www.netland.nl   Kruislaan 419              1098 VA Amsterdam
> info: 020-5628282       servicedesk: 020-5628280   fax: 020-5628281
> 
> Never trust a man who can count to 1,023 on his fingers


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click