RE: Not able to accept more than 60 connections
RE: Not able to accept more than 60 connections
- Subject: RE: Not able to accept more than 60 connections
- From: Mahesh Vyas <email@hidden>
- Date: Thu, 1 Apr 2004 11:55:26 +0530
Introduction of Delay couldnt solve the problem
The accept fails and returns EMFILE i.e.
[EMFILE] The per-process descriptor table is full.
Thanx
Mahesh Vyas
-----Original Message-----
From: Pranav Kumar Sahu
Sent: Thursday, April 01, 2004 10:18 AM
To: Mahesh Vyas; email@hidden
Cc: Rama Swamy Yeleswarapu; Abhishek Jain; Kabir Khanna
Subject: RE: Not able to accept more than 60 connections
It depends on the backlog parameter that you have mentioned with your listen
call. And I think default is 128.
If you are not happy with the performance you can go for multithreaded.
--Pranav Sahu
-----Original Message-----
From: email@hidden
[
mailto:email@hidden]On Behalf Of Mahesh Vyas
Sent: Wednesday, March 31, 2004 5:06 PM
To: email@hidden
Cc: Rama Swamy Yeleswarapu; Abhishek Jain
Subject: Not able to accept more than 60 connections
In MACOSX(Jaguar and Panther), we are using BSD socket calls in our
client-server application.
The server is handling each client in the asynchronous way, i.e, one
function takes care of all client the requests(not creating thread for each
client).
After the number of client(connect call from client) reaches approx. 60, the
server stops accepting new connection, i.e., successive calls to accept()
fails.
1. Is there any limit to the number of connections that can be established
in MACOSX.
2. If yes, is it configurable.
3. Is this architecture(single-threaded) advisable over the multithreaded
one.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.