pike.git / lib / modules / Sql.pmod / pgsql_util.pmod

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:476:    if (result._state != PURGED && !result.delayederror)    result.delayederror = LOSTERROR;    result._ddescribe->broadcast();    runningportals[result] = 0;    } else    destruct(result);    };    destruct(nostash);    socket->set_non_blocking(); // Drop all callbacks    PD("%d>Close socket\n", socket->query_fd()); -  socket->close(); +  socket->close(); // This will be an asynchronous close    }    destruct(this);    }    }       private void _destruct() {    PD("%d>Close conxion %d\n", socket ? socket->query_fd() : -1, !!nostash);    catch(purge());    }