Update of /cvsroot/squeak/squeak/platforms/win32/plugins/SocketPlugin
In directory usw-pr-cvs1:/tmp/cvs-serv4145
Modified Files:
sqWin32NewNet.c
Log Message:
fixed resolver problem reported by mdr
Index: sqWin32NewNet.c
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/win32/plugins/SocketPlugin/sqWin32NewNet.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sqWin32NewNet.c 4 May 2002 23:20:28 -0000 1.2
--- sqWin32NewNet.c 11 May 2002 00:27:50 -0000 1.3
***************
*** 1498,1502 ****
if(asyncLookupHandle) return; /* lookup in progress */
len = nameSize < MAXHOSTNAMELEN ? nameSize : MAXHOSTNAMELEN;
! if((strlen(lastName) == len) && (strncmp(hostName, lastName, len) == 0)) {
/* same as last, no point in looking it up */
signalSemaphoreWithIndex(resolverSemaphoreIndex);
--- 1498,1504 ----
if(asyncLookupHandle) return; /* lookup in progress */
len = nameSize < MAXHOSTNAMELEN ? nameSize : MAXHOSTNAMELEN;
! if((lastError == 0) &&
! (strlen(lastName) == len) &&
! (strncmp(hostName, lastName, len) == 0)) {
/* same as last, no point in looking it up */
signalSemaphoreWithIndex(resolverSemaphoreIndex);
***************
*** 1554,1557 ****
--- 1556,1560 ----
strcpy(lastName,he->h_name);
lastAddr = ntohl(*(long*)(he->h_addr_list[0]));
+ lastError = 0;
}
else
***************
*** 1575,1578 ****
--- 1578,1582 ----
strcpy(lastName,he->h_name);
lastAddr = ntohl(*(long*)(he->h_addr_list[0]));
+ lastError = 0;
}
else
|