• Noah Misch's avatar
    Handle WAIT_IO_COMPLETION return from WaitForMultipleObjectsEx(). · de35a977
    Noah Misch authored
    This return code is possible wherever we pass bAlertable = TRUE; it
    arises when Windows caused the current thread to run an "I/O completion
    routine" or an "asynchronous procedure call".  PostgreSQL does not
    provoke either of those Windows facilities, hence this bug remaining
    largely unnoticed, but other local code might do so.  Due to a shortage
    of complaints, no back-patch for now.
    
    Per report from Shiv Shivaraju Gowda, this bug can cause
    PGSemaphoreLock() to PANIC.  The bug can also cause select() to report
    timeout expiration too early, which might confuse pgstat_init() and
    CheckRADIUSAuth().
    de35a977
socket.c 14.8 KB