summaryrefslogtreecommitdiff
path: root/source4/libcli/wrepl/winsrepl.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/wrepl/winsrepl.h')
-rw-r--r--source4/libcli/wrepl/winsrepl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/libcli/wrepl/winsrepl.h b/source4/libcli/wrepl/winsrepl.h
index a966cf5451..64e09d61c6 100644
--- a/source4/libcli/wrepl/winsrepl.h
+++ b/source4/libcli/wrepl/winsrepl.h
@@ -39,6 +39,13 @@ struct wrepl_socket {
/* the fd event */
struct fd_event *fde;
+ /* the default timeout for requests, 0 means no timeout */
+#define WREPL_SOCKET_REQUEST_TIMEOUT (60)
+ uint32_t request_timeout;
+
+ /* counter for request timeouts, after 2 timeouts the socket is marked as dead */
+ uint32_t timeout_count;
+
/* remember is the socket is dead */
BOOL dead;
};
@@ -64,6 +71,8 @@ struct wrepl_request {
size_t num_read;
+ struct timed_event *te;
+
struct wrepl_packet *packet;
struct {