• Alexander Nozdrin's avatar
    A patch for Bug#12325375: THE SERVER ON WINXP DOES NOT ALLOW CONNECTIONS · 9303909a
    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).
    9303909a
viosocket.c 28.3 KB