• Alexander Nozdrin's avatar
    A patch for Bug#12325375: THE SERVER ON WINXP DOES NOT ALLOW CONNECTIONS · 31e7450c
    Alexander Nozdrin authored
    IF NO DNS-SERVER AVAILABLE.
    
    The thing is that on Windows XP getnameinfo() returns WSANO_DATA
    when hostname-lookup is not available. The problem was that
    this error code was treated as serious error and the client
    connection got rejected.
    
    The fix is to treat all errors from getnameinfo() as not ciritical,
    but add IP-address to the host cache only for EAI_NONAME (or WSANO_DATA).
    31e7450c
hostname.cc 14.8 KB