Re: accept 1000 or more incoming conection
- From: jignesh2680@xxxxxxxxx
- Date: 7 Nov 2005 22:08:53 -0800
Dear Phil ,
I am really thanks for Your Fast and Positive Reply . I am posting my
problem in more details ...
The listen function places a socket a state where it is listening for
an incoming connection.
int listen(
SOCKET s,
int backlog
);
Parameters
s
[in] Descriptor identifying a bound, unconnected socket.
backlog
[in] Maximum length of the queue of pending connections. If set to
SOMAXCONN, the underlying service provider responsible for socket s
will set the backlog to a maximum reasonable value. There is no
standard provision to obtain the actual backlog value.
This is from MSDN...
Now i have developed a client that Makes 500 connection to a server at
a single button click
Now many of connection is refused by server [eg : listen(sock , 5) ie
backlog = 5 in my case ] and client gets 10060 error code .i have make
test cases by running clients on 10 different machine with 512 MB RAM
and make 500 Live connection to a server running on Single MAchine with
1GB RAM. I have maintain counter for sucess Rate and Failure Rate....
my Sucess Rate Decreases as i make more connection to server from
Running instance of client .
i keep on making connection until i get 10055 ( Less Buffer Space
error)
In short How can i make my server to handle More client Request and
keep that connection live . i have not implemented I/O completion ports
yet ......
Hope this may get clear view of my Problem...
Once again thanks in advance
Regards ,
Jignesh Patel
Surat
.
- Follow-Ups:
- Re: accept 1000 or more incoming conection
- From: Sean Kelly
- Re: accept 1000 or more incoming conection
- References:
- accept 1000 or more incoming conection
- From: jignesh2680
- Re: accept 1000 or more incoming conection
- From: Phil Frisbie, Jr.
- accept 1000 or more incoming conection
- Prev by Date: Re: How to avoid DCLP?
- Next by Date: Posix Thread class( C++) library for Solaris Sparc 5.8
- Previous by thread: Re: accept 1000 or more incoming conection
- Next by thread: Re: accept 1000 or more incoming conection
- Index(es):