Re: accept 1000 or more incoming conection



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

.