Branch: Tag:

2016-10-13

2016-10-13 09:52:22 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Drop termination lock even on exceptions.

Prevent cancelquery() from starting the statemachine.
This was responsible for the majority of the exceptions.

208:    }       final int read_cb(mixed id,mixed b) { -  PD("Read callback %O\n",(string)b); +  PD("Read callback %O\n",((string)b) + #ifndef PG_DEBUGMORE +  [..255] + #endif +  );    Thread.MutexKey lock=fillreadmux->lock();    if(procmsg&&id)    procmsg=0,lock=0,Thread.Thread(id);
411:    socket->set_backend(local_backend);    socket->set_buffer_mode(i,0);    socket->set_nonblocking(i->read_cb,write_cb,close); +  if (nossl != 2) {    connectfail=pgsqlsess->_connectfail;    Thread.Thread(pgsqlsess->_processloop,this); -  +  }    return;    };    catch(connectfail(err));