pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2020-02-17
2020-02-17 16:14:05 by Stephen R. van den Berg <srb@cuci.nl>
70a17c48b656460d13f669c5885b92d5226b6749 (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Avoid output_to() race on large requests.
565:
add(PGFLUSH); case SENDOUT:; }
-
if (towrite = sizeof(this)) {
+
Thread.MutexKey lock = shortmux->trylock();
+
if (
lock && (
towrite = sizeof(this))
)
{
PD("%d>Sendcmd %O\n", socket->query_fd(), ((string)this)[..towrite-1]); towrite -= output_to(socket, towrite);