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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:418:    PD("%d>Delayed close, flush write\n",socket->query_fd());    i->read_cb(socket->query_id(),0);    return 0;    } else    return -1;    }       protected void destroy() {    PD("%d>Close conxion %d\n", socket ? socket->query_fd() : -1, !!nostash);    int|.pgsql_util.sql_result portal; +  if (qportals) // CancelRequest does not use qportals    while (portal = qportals->try_read())    if (objectp(portal))    portal->_purgeportal();    if(nostash) {    catch {    while(sizeof(closecallbacks))    foreach(closecallbacks;function(void|mixed:void) closecb;)    closecb();    destruct(nostash);    socket->set_nonblocking(); // Drop all callbacks
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:497:    string res=UNDEFINED;    switch(type) {    case 'O':    int fd=-1;    if(socket)    catch(fd=socket->query_fd());    res=predef::sprintf("conxion fd: %d input queue: %d/%d "    "queued portals: %d output queue: %d/%d\n"    "started: %d\n",    fd,sizeof(i),i->_size_object(), -  qportals->size(),sizeof(this),_size_object(), +  qportals && qportals->size(), sizeof(this), _size_object(),    !!started);    break;    }    return res;    }       protected void create(object pgsqlsess,Thread.Queue _qportals,int nossl) {    o::create();    qportals = _qportals;    synctransact = 1;