aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/postgresql.conf.sample
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 /src/backend/utils/misc/postgresql.conf.sample
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 'src/backend/utils/misc/postgresql.conf.sample')
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index c39e31d7483..b17af7d1fa7 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -176,6 +176,7 @@
#
#dynamic_library_path = '$libdir'
#australian_timezones = false
+#authentication_timeout = 60 # min 1, max 600
#deadlock_timeout = 1000
#default_transaction_isolation = 'read committed'
#max_expr_depth = 10000 # min 10