aboutsummaryrefslogtreecommitdiff
path: root/src/include/storage/proc.h
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/include/storage/proc.h
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/include/storage/proc.h')
-rw-r--r--src/include/storage/proc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index 0b318ec0a54..9a1c63ef1be 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: proc.h,v 1.46 2001/09/07 00:27:30 tgl Exp $
+ * $Id: proc.h,v 1.47 2001/09/21 17:06:12 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -154,4 +154,7 @@ extern void ProcWaitForSignal(void);
extern void ProcCancelWaitForSignal(void);
extern void ProcSendSignal(BackendId procId);
+extern bool enable_sigalrm_interrupt(int delayms);
+extern bool disable_sigalrm_interrupt(void);
+
#endif /* PROC_H */