diff options
Diffstat (limited to 'src/backend/libpq/pqcomm.c')
| -rw-r--r-- | src/backend/libpq/pqcomm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index b83a2efb69..c36cf31826 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -1247,9 +1247,13 @@ internal_flush(void) /* * We drop the buffered data anyway so that processing can - * continue, even though we'll probably quit soon. + * continue, even though we'll probably quit soon. We also + * set a flag that'll cause the next CHECK_FOR_INTERRUPTS + * to terminate the connection. */ PqSendStart = PqSendPointer = 0; + ClientConnectionLost = 1; + InterruptPending = 1; return EOF; } |
