pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-10-15
2016-10-15 00:32:08 by Stephen R. van den Berg <srb@cuci.nl>
b982c0c65ab5cf6c24d13a28a6cc32061efcccc9 (
14
lines) (+
10
/-
4
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Drop callbacks on destruct of conxion, force short close.
279:
} private int write_cb() {
-
Thread.MutexKey lock=shortmux->lock();
-
towrite-=output_to(socket,towrite);
-
lock=0;
-
if(!i->fillread && !sizeof(this))
+
Thread.MutexKey lock
=
shortmux->lock();
+
towrite
-=
output_to(socket,towrite);
+
lock
=
0;
+
#ifdef
PG_DEBUG
+
if
(!i->fillread
)
+
PD("%d>Delayed close to go %d\n", socket->query_fd(), sizeof(this));
+
#endif
+
if (!i->fillread
&& !sizeof(this))
close(); return 0; }
364:
} protected void destroy() {
+
PD("%d>Close conxion %d\n", socket ? socket->query_fd() : -1, !!nostash);
if(nostash) { catch { while(sizeof(closecallbacks))