🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.networking
Article #1517

TCP/IP 2.0 Socket Resources

#1517
From: Kevin Rosenthall
Date: Wed, 02 Aug 1995 00:00
46 lines
2582 bytes

Hi.

We are developing a server process, that is to be able to accept
multiple concurrent socket connections, and be robust enough to have
these connections break and connect many times for periods of weeks.
In other words, a robust Internet server utility.

Perhaps someone else has observed similar problems:

There is a theoretical maximum of 2048 concurrent sockets using
TCP/IP.  I think the effectivel number people have been observing is
more like 200, but that doesn't matter to us (yet).

When you create a socket, the system (or TCP/IP stack) gives you a
socket descriptor number, e.g. 26.  Now, if I close socket 26, and
request a new socket, rather than getting 26 again, the system gives
me socket 27.  It would appear that the system is not very good at
recycling old sockets.

We have experienced problems when, after running a program for a long
time, the socket number values approach 2048.  What we have observed
is that the socket values "roll over" 2048 back to 1.  This, in
itself, is not bad, but we have observed frequently that the TCP/IP
process dies (well, just sits/hangs)  shortly after rolling over 2048.


Has anyone some comments on this situation?  These would be most
appreciated.


Regards, 

]{evin





__________________________________________________________________________

      Kevin Rosenthall                 Kevin.Rosenthall@PoBox.Com
      15 Dunloe Road                  
      Richmond Hill, Ontario           Tel: (905) 883-6581
      Canada  L4B 2H5                  Fax: (905) 886-5749
Technical Details
Message-ID: <3vo653$ahi@inforamp.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1014da,9a65426cddd4a696,start
X-Google-Attributes: gid1014da,public
X-Google-Thread: 115d0d,9a65426cddd4a696,start
X-Google-Attributes: gid115d0d,public
X-Google-Thread: 100b63,9a65426cddd4a696,start
X-Google-Attributes: gid100b63,public
X-Google-Thread: 10121b,9a65426cddd4a696,start
X-Google-Attributes: gid10121b,public
X-Google-Thread: 104dc3,9a65426cddd4a696,start
X-Google-Attributes: gid104dc3,public
X-Google-Thread: 106983,9a65426cddd4a696,start
X-Google-Attributes: gid106983,public
From: Kevin.Rosenthall@PoBox.Com (Kevin Rosenthall)
Subject: TCP/IP 2.0 Socket Resources
Date: 1995/08/02
Message-ID: <3vo653$ahi@inforamp.net>
X-Deja-AN: 107428052
organization: InfoRamp Inc., Toronto, Ontario (416) 363-9100
reply-to: Kevin.Rosenthall@PoBox.Com
newsgroups: comp.os.os2.networking,comp.os.os2.networking.misc,comp.os.os2.networking.tcp-ip,comp.os.os2.programmer,comp.os.os2.programming,demon.ip.support.os2