summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-12 02:42:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:00 -0500
commitee30cf3b1df749241b8ed479d7b3558af81b27bf (patch)
tree36d1660d356b36d353937fd5b867b6e04bccd7a7 /source4/librpc/rpc/dcerpc.h
parentd1e8e62a56a9e25f00868f287c8c4fe83f79dba9 (diff)
downloadsamba-ee30cf3b1df749241b8ed479d7b3558af81b27bf.tar.gz
samba-ee30cf3b1df749241b8ed479d7b3558af81b27bf.tar.bz2
samba-ee30cf3b1df749241b8ed479d7b3558af81b27bf.zip
r7497: add timeouts to all rpc requests. The default timeout is 60
seconds. This should prevent the problem I am seeing on a solaris box where a rpc request gets stuck forever (This used to be commit c24ab34813d675b9b81f3062fb6f30aae5697805)
Diffstat (limited to 'source4/librpc/rpc/dcerpc.h')
-rw-r--r--source4/librpc/rpc/dcerpc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h
index 89a969a118..2f64c0ef34 100644
--- a/source4/librpc/rpc/dcerpc.h
+++ b/source4/librpc/rpc/dcerpc.h
@@ -94,8 +94,14 @@ struct dcerpc_pipe {
/* the last fault code from a DCERPC fault */
uint32_t last_fault_code;
+
+ /* timeout for individual rpc requests, in seconds */
+ uint_t request_timeout;
};
+/* default timeout for all rpc requests, in seconds */
+#define DCERPC_REQUEST_TIMEOUT 60
+
/* dcerpc pipe flags */
#define DCERPC_DEBUG_PRINT_IN (1<<0)