This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Re: accept() FreeBSD hangs when out of resources


On Tue, Jun 12, 2007 at 05:51:04AM +0200, Andrew Lunn wrote:
> On Mon, Jun 11, 2007 at 04:14:45PM -0800, Tad wrote:
> > Andrew Lunn wrote:
> > >What i would ideally like is a test case we can add to the standard
> > >tests. The test case should fail now, but once we have fix the problem
> > >we can keep the test case for regression tests.
> > 
> > 16 rapid http POSTS to any ATHTTP server compiled with 16 max sockets 
> > should lock the server up forever (as long as they're 
> > <CYG_HTTPD_SOCKET_IDLE_TIMEOUT(300) secs so the TCP conns stay in 
> > ESTABLISHED rather than TIMED_WAIT)
> 
> So, maybe you can modify the server test case, assuming there is one,
> by adding a new thread which makes 16 connections to 127.0.0.1:80.

Actually, tcp_lo_test.c probably has 90% of the code you need for
writing a much simpler test case.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]