Solved

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

Posted on 2002-05-07
3
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

710 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