Branch: Tag:

2014-11-14

2014-11-14 09:39:51 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Connects failing due to insufficient resources handled more gracefully.

292:    started=0;    return;    }; +  if(pgsqlsess)    pgsqlsess->_connectfail();    }   
300:    }       final int close() { +  destruct(nostash);    return socket->close();    }   
350:    Thread.Thread(pgsqlsess->_processloop,this);    return;    }; +  if(pgsqlsess)    pgsqlsess->_connectfail(err);    }   
746:    switch(_state) {    case copyinprogress:    case bound: +  _datarows->write(1); // Signal EOF    --pgsqlsess->_portalsinflight;    }    _state=closed;