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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:488:    destruct(this);    }    }       private void _destruct() {    PD("%d>Close conxion %d\n", socket ? socket->query_fd() : -1, !!nostash);    catch(purge());    }       final void connectloop(proxy pgsqlsess, int nossl) { -  mixed err = catch { + #ifdef PG_DEBUG +  mixed err = + #endif +  catch {    for (; ; clear()) {    socket->connect(pgsqlsess. host, pgsqlsess. port);   #if constant(SSL.File)    if (!nossl && !pgsqlsess->nossl    && (pgsqlsess.options.use_ssl || pgsqlsess.options.force_ssl)) {    PD("SSLRequest\n");    start()->add_int32(8)->add_int32(PG_PROTOCOL(1234, 5679))    ->sendcmd(SENDOUT);    string s = socket.read(1);    switch (sizeof(s) && s[0]) {
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:534:    }    if (!socket->is_open())    error(strerror(socket->errno()) + ".\n");    socket->set_backend(local_backend);    socket->set_buffer_mode(i, 0);    socket->set_nonblocking(i->read_cb, write_cb, close);    if (nossl != 2)    Thread.Thread(pgsqlsess->processloop, this);    return;    }; +  PD("Connect error %s\n", describe_backtrace(err));    catch(destruct(pgsqlsess->waitforauthready));    destruct(this);    }       private string _sprintf(int type) {    string res;    switch (type) {    case 'O':    int fd = -1;    if (socket)