none
TF_REUSE_SOCKET with DisconnectEx at windows server 2008 r2 RRS feed

  • Question

  • i use disconnectex with TF_REUSE_SOCKET param to init close socket in IOCP i/o model. 

    this method is all ok in sever 2003. but when the program run in server 2008 x64. i found it lose at sometimes.

    i try my best to describe the test case clear, and thx for all reply.

     

    i have a server and hundreds of client. the server send package of 200k package every 100ms. but client didn't call the recv function. So the server can't send out the packages soon. then when the client sock have 256 packages wait for send at server, the server disconnect the client with DisconnectEx with TF_REUSE_SOCKET  . 

    at this sence, i found there was about 1/4 DisconnectEx could never be got by GetQueuedCompletionStatus. even after the link state is TIME_WAIT or disappear from server. the iocp action can't be got by GetQueuedCompletionStatus.

    and the test case runs all ok in  server 2003 system.

    any body could help? 


    • Edited by SuperKuku Monday, January 16, 2012 5:08 AM
    • Moved by Helen Zhao Wednesday, January 18, 2012 3:41 AM (From:Visual C++ General)
    Monday, January 16, 2012 3:51 AM

All replies