Jump to content
  • Advertisement
Sign in to follow this  
Taylor Softs

IOCP mechanism issue disconnect

This topic is 911 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've created a server using IOCP mechanism to handle a thousand of Clients Socket.

So i Stress the server with 2000 connection, i send data to the server every 1 second, length of packet is 2048 bytes, the server work just fine and when i close sockets on the client all sockets are closed on the server

When i stress the server using 2500 or more, Send and receive data work very well but when i close sockets on the client, i got only 2040 closed Sockets on the server and the iocp will never send the notification to close the rest of sockets

for more information i use AcceptEx to accept a new connection, the same issue with accept using Select Events methods

i'm using Zero Byte Read to avoid WSANOBUFS but same issue

i hope i found some one here with the same problem as me

i test the server on windows Seven 64 bit CPU : i7 4790K RAM : 16 GO

IDE : Visual C++ 2013

Language C++

Edited by Taylor Softs

Share this post


Link to post
Share on other sites
Advertisement
Are you sure that the client is actually making all of the connections?
Are you sure that the server is actually accepting all the connections?
Also, which version of Windows are you using? It used to be that "consumer" Windows had a limit to the maximum number of incoming connections; that may still be the case. If so, try with Windows Server.

Share this post


Link to post
Share on other sites

i've disabled the Half TCP Connection on the registry

 

yes i'm very sure i got a notification for every new connection

 

for more information i use AcceptEx just to notifity me when there is a new connection and not to wait data (to avoid Denial of Service Attack)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!