Solved

Limit on number of tcp/ip 'sockets' provided.

Posted on 2002-05-07
3
162 Views
Last Modified: 2010-04-13
I run an application that uses the winsock interface
version 1.1. This fails if it appempts to listen out
on more than about 80 sockets.
I know that there is a limit on the actual number
of sockets provided by the implementation on 2000
but what is it? and is it configurable somehow?
(Prehaps a registry entry?)
0
Comment
Question by:mellor
3 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6995012
What error are you getting?  There is not such a limit on W2K.  I suspect you have a different problem.
0
 

Author Comment

by:mellor
ID: 6995907
WSAEINTR from 'accept'.
The winsock documentation itself talks about the
possibility of limits on the number of sockets
supported. (section 2.6.7 of the winsock documentation)
0
 
LVL 14

Accepted Solution

by:
AvonWyss earned 200 total points
ID: 6998260
There is indeed a limit, but it should be much higher than 80. The limit is implicated by the use of memory from the nonpaged pool, which has a size which is fixed during runtime of Windows. The pool is sized depending on the amount o physical RAM installed. Therefore, installing more RAM may help to get more simultaneous sockets.

Also, the size of the backlog when listening may have an influence. Try setting the backlog to 1.

Anyways, why would you need to open this many sockets anyways? Maybe there is a better approach to your task, like using a network filter driver or so.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
A procedure for exporting installed hotfix details of remote computers using powershell
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now