Skip to content

Commit be13cce

Browse files
committed
Warning about keepalive not working with Wait
1 parent cb4b115 commit be13cce

7 files changed

Lines changed: 363 additions & 362 deletions

File tree

‎Npgsql‎

‎docs/doc/keepalive.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
<article class="content wrap" id="_content" data-uid="">
7575
<h1 id="keepalive">Keepalive</h1>
7676

77+
<p><img src="/img/warning.png" alt="warning"> Keepalives unfortunately aren&#39;t sent while in Wait, here&#39;s a <a href="https://github.com/npgsql/npgsql/issues/1214#issuecomment-235828359">workaround</a>. This will be fixed in 3.2.</p>
7778
<p>Some clients keep idle connections for long periods of time - this is especially frequent when waiting for PostgreSQL notifications.
7879
In this scenario, how can the client know the connection is still up, and hasn&#39;t been broken by a server or network outage?
7980
For this purpose, Npgsql has a keepalive feature, which makes it send periodic <code>SELECT NULL</code> queries.

‎docs/doc/wait.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h2 id="processing-of-notifications">Processing of Notifications</h2>
100100
}
101101
</code></pre><hr>
102102
<h2 id="keepalive">Keepalive</h2>
103-
<p>You may want to turn on <a href="keepalive.html">keepalives</a>.</p>
103+
<p><img src="/img/warning.png" alt="warning"> Keepalives unfortunately aren&#39;t sent while in Wait, here&#39;s a <a href="https://github.com/npgsql/npgsql/issues/1214#issuecomment-235828359">workaround</a>. This will be fixed in 3.2.</p>
104104

105105
</article>
106106
</div>

‎docs/img/warning.png‎

587 Bytes
Loading

‎docs/index.json‎

Lines changed: 359 additions & 359 deletions
Large diffs are not rendered by default.

‎docs/manifest.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎img/warning.png‎

587 Bytes
Loading

0 commit comments

Comments
 (0)