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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:349:    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() {    if(nostash) {    catch { +  while(sizeof(closecallbacks)) +  foreach(closecallbacks;function(void|mixed:void) closecb;) +  closecb();    destruct(nostash);    PD("%d>Close socket\n",socket->query_fd());    socket->close(); -  foreach(closecallbacks;function(void|mixed:void) closecb;) -  closecb(); -  closecallbacks=(<>); +     };    }    connectfail=0;    }       final void connectloop(object pgsqlsess, int nossl) {    mixed err=catch {    for(;;clear()) {    socket->connect(pgsqlsess._host,pgsqlsess._port);   #if constant(SSL.File)
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:508:    protected void create(object _pgsqlsess,conxion _c,string query,    int _portalbuffersize,int alltyped,array params,int forcetext,    int _timeout) {    pgsqlsess = _pgsqlsess;    cr = (c = _c)->i;    _query = query;    datarows = Thread.Queue();    _ddescribe=Thread.Condition();    _ddescribemux=Thread.Mutex();    closemux=Thread.Mutex(); -  c->closecallbacks+=(<destroy>); +     portalbuffersize=_portalbuffersize;    alltext = !alltyped;    _params = params;    _forcetext = forcetext;    _state = PORTALINIT;    timeout = _timeout;    gottimeout = _pgsqlsess->cancelquery; -  +  c->closecallbacks+=(<destroy>);    }       //! Returns the command-complete status for this query.    //!    //! @seealso    //! @[affected_rows()]    //!    //! @note    //! This function is PostgreSQL-specific, and thus it is not available    //! through the generic SQL-interface.