aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-09-21 17:06:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-09-21 17:06:12 +0000
commit35b7601b0484f8cf73299932b610bba6bcdde387 (patch)
treebe929f72b1fa13a689ce36d7afcddd777375c44e /doc/src
parente3f5bc3492efa1fa6d20491bb3134c9b32f30b7d (diff)
downloadpostgresql-35b7601b0484f8cf73299932b610bba6bcdde387.tar.gz
postgresql-35b7601b0484f8cf73299932b610bba6bcdde387.zip
Add an overall timeout on the client authentication cycle, so that
a hung client or lost connection can't indefinitely block a postmaster child (not to mention the possibility of deliberate DoS attacks). Timeout is controlled by new authentication_timeout GUC variable, which I set to 60 seconds by default ... does that seem reasonable?
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/runtime.sgml16
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index 55034494dcb..e6095f26996 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.82 2001/09/21 03:32:35 tgl Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.83 2001/09/21 17:06:12 tgl Exp $
-->
<Chapter Id="runtime">
@@ -1019,6 +1019,20 @@ env PGOPTIONS='-c geqo=off' psql
</varlistentry>
<varlistentry>
+ <term><varname>AUTHENTICATION_TIMEOUT</varname> (<type>integer</type>)</term>
+ <listitem>
+ <para>
+ Maximum time to complete client authentication, in seconds.
+ If a would-be client has not completed the authentication protocol
+ in this much time, the server unceremoniously breaks the connection.
+ This prevents hung clients from occupying a connection indefinitely.
+ This option can only be set at server start or in the
+ <filename>postgresql.conf</filename> file.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<indexterm>
<primary>deadlock</primary>
<secondary>timeout</secondary>