Skip to content
Snippets Groups Projects
Commit 86ece4bf authored by Simon Riggs's avatar Simon Riggs
Browse files

Turn off WalSender keepalives by default, users can enable if desired

parent 6a2cbe12
No related branches found
No related tags found
No related merge requests found
......@@ -834,7 +834,7 @@ WalSndLoop(void)
if (pq_is_send_pending())
wakeEvents |= WL_SOCKET_WRITEABLE;
else
else if (MyWalSnd->sendKeepalive)
{
WalSndKeepalive(output_message);
/* Try to flush pending output to the client */
......
......@@ -37,6 +37,7 @@ typedef struct WalSnd
XLogRecPtr sentPtr; /* WAL has been sent up to this point */
bool needreload; /* does currently-open file need to be
* reloaded? */
bool sendKeepalive; /* do we send keepalives on this connection? */
/*
* The xlog locations that have been written, flushed, and applied by
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment