Subject: RE: TCP Server stops accepting after 10mins

From: Steven Vacca <[email-masked]>
Date: Mon, 8 Jan 2001 09:13:23 -0500

I have also discovered that after the 10 mins, when the
TCP Server stops accepting, then if I wait 1 minute, the
TCP Client can once again start connecting for another
10 mins before connect failure.  Again, this is irregardless
of connect freqs of 50 times per sec or once every 30 secs.

-----Original Message-----
From:	Steven Vacca [SMTP:[email-masked]]
Sent:	Monday, January 08, 2001 8:16 AM
To:	LinuxEmbeddedMailList (E-mail)
Subject:	Re: TCP Server stops accepting after 10mins

Has anyone who is working with Redhat EDK 1.0, with its kernel
v2.2.13 and a TCP Server running on an MPC860, ever been able
to have a TCP Client (on another PC) connect at a rate of once every
30s, or more frequently (say, once every 5 secs) , to the TCP Server
for longer than 10 minutes?

Could someone who has this setup please try doing this?
Below are 2 good tests to try.  Both fail at 10 mins on my system.

Test scenario #1, connecting at once every 5s:

On another PC:
Client:   while (1)
               {
               socket()
               connect()
               close()
               5 sec delay        (120 connects in 10 mins)
               }

On Embedded EDK unit:
Server:   socket()
             bind()
             listen()

             while (1)
               {
               accept()
               close()
               }

Test scenario #2, connecting 50 times per sec:

On another PC:
Client:   while (1)
               {
               socket()
               connect()
               close()
               1/50 sec delay        (30,000 connects in 10 mins)
               }

On Embedded EDK unit:
Server:   socket()
             bind()
             listen()

             while (1)
               {
               accept()
               close()
               }

Thanks,

 ShutEye Thinkin

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/