Is there any reason for a blocking call to winsock send() function on Vista to return immediately ?
- by ivymike
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