diff libfdcore/cnxctx.h @ 1200:ce2b00dc86c1

React quickly to head-of-the-line blocking in case of network failure. Can be adapted with MAX_HOTL_BLOCKING_TIME constant in cnxctx.h
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 14 Jun 2013 10:14:11 +0800
parents 56c36d1007b4
children 689758fbb05d
line wrap: on
line diff
--- a/libfdcore/cnxctx.h	Fri Jun 14 10:13:22 2013 +0800
+++ b/libfdcore/cnxctx.h	Fri Jun 14 10:14:11 2013 +0800
@@ -38,6 +38,9 @@
 #ifndef _CNXCTX_H
 #define _CNXCTX_H
 
+/* Maximum time we allow a connection to be blocked because of head-of-the-line buffers. After this delay, connection is considered in error. */
+#define MAX_HOTL_BLOCKING_TIME	1000	/* ms */
+
 /* The connection context structure */
 struct cnxctx {
 	char		cc_id[60];	/* The name of this connection. the first 5 chars are reserved for flags display (cc_state). */
"Welcome to our mercurial repository"