[hurd,commited,1/3] hurd: set interrupt timeout to 1 minute

Message ID 20181028133820.11856-2-samuel.thibault@ens-lyon.org
State New
Headers show
Series
  • Fix RPC interruption handling
Related show

Commit Message

Samuel Thibault Oct. 28, 2018, 1:38 p.m.
Seeing a server not able to get interrupted for 3s is not so surprising when
e.g. a lot of writes are happening. 1 minute allows to actually notice the
issue and be able to debug it.

	* hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
---
 ChangeLog      | 4 ++++
 hurd/hurdsig.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.19.1

Patch

diff --git a/ChangeLog b/ChangeLog
index 736d85f221..79255d3795 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@ 
+2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+	* hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
+
 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
 
 	* scripts/build-many-glibcs.py: Remove compatibility for missing
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index aa82f63413..48179b4197 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -57,7 +57,7 @@  unsigned long int __hurd_sigthread_stack_end;
 struct hurd_sigstate *_hurd_sigstates;
 
 /* Timeout for RPC's after interrupt_operation. */
-mach_msg_timeout_t _hurd_interrupted_rpc_timeout = 3000;
+mach_msg_timeout_t _hurd_interrupted_rpc_timeout = 60000;
 
 static void
 default_sigaction (struct sigaction actions[NSIG])