Is there any reason for a blocking call to winsock send() function on Vista to return immediately ?

Posted by ivymike on Stack Overflow See other posts from Stack Overflow or by ivymike
Published on 2010-03-25T11:51:19Z Indexed on 2010/03/25 12:03 UTC
Read the original article Hit count: 170

Filed under:
|
|
|
|

Hi All,
Is there any reason for a blocking call to winsock's send() function on Vista to return immediately ? It works with expected delay on XP and below. I'm wondering if this has got anything to do with auto-tuning feature of Vista. Code:

   char *pBuffer; // pointer to data
   int bytes;  // total size
   int i = 0, j=0;
   while (i < bytes)
   {
    j = send(m_sock, pBuffer+i, bytes-i, 0);
        i+=j;
   }

Thanks,
Pavan

© Stack Overflow or respective owner

Related posts about winsock

Related posts about send