[ldns-users] Improper socket closing on Windows
    Zbynek Michl 
    zbynek.michl at nic.cz
       
    Tue Sep  7 13:34:41 UTC 2010
    
    
  
Hi,
ldns library does not close sockets on Windows. In sources is almost everywhere 
used close() function, but it works well just on UNIX systems. On Windows is 
necessary to use closesocket() instead of close() function. So I suggest to 
modify ldns source files like this:
#ifndef USE_WINSOCK
     close(sockfd);
#else
     closesocket(sockfd);
#endif
Regards,
Zbynek
    
    
More information about the ldns-users
mailing list