Branch: Tag:

2016-10-15

2016-10-15 09:47:27 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Drop callbacks for real, code got lost between commit juggling.

284:       private int write_cb() {    Thread.MutexKey lock = shortmux->lock(); -  if (this) { +     towrite -= output_to(socket, towrite);    lock = 0;    if (!i->fillread && !sizeof(this))    close(); -  } else -  lock = 0; +     return 0;    }   
378:    foreach(closecallbacks;function(void|mixed:void) closecb;)    closecb();    destruct(nostash); +  socket->set_nonblocking(); // Drop all callbacks    PD("%d>Close socket\n",socket->query_fd());    socket->close();    };