summaryrefslogtreecommitdiffstats
path: root/src/server/globals.h
diff options
context:
space:
mode:
authorSimon Rettberg2014-12-22 15:51:30 +0100
committerSimon Rettberg2014-12-22 15:51:30 +0100
commitcce7cf2c1428d174dd49177358dc52b234e97e5c (patch)
treedb0fa8c046e5c694bde7ff5afdff96c773ad6d64 /src/server/globals.h
parentget-version.sh will always work in the directory it's placed in (diff)
downloaddnbd3-cce7cf2c1428d174dd49177358dc52b234e97e5c.tar.gz
dnbd3-cce7cf2c1428d174dd49177358dc52b234e97e5c.tar.xz
dnbd3-cce7cf2c1428d174dd49177358dc52b234e97e5c.zip
[SERVER] Configurable client timeout, adaptive replication speed (to be tested against varying bw/latency), retry sendfile call if ret <= len
Diffstat (limited to 'src/server/globals.h')
-rw-r--r--src/server/globals.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/server/globals.h b/src/server/globals.h
index 1b17660..c215916 100644
--- a/src/server/globals.h
+++ b/src/server/globals.h
@@ -56,7 +56,8 @@ struct _dnbd3_connection
int recvBufferLen; // Len of ^^
volatile int shutdown; // bool to signal thread to stop, must only be set from uplink_shutdown() or cleanup in uplink_mainloop()
int replicatedLastBlock; // bool telling if the last block has been replicated yet
- time_t lastReplication; // timestamp of when last replication requests were sent
+ //time_t lastReplication; // timestamp of when last replication requests were sent
+ uint64_t replicationHandle; // Handle of pending replication request
};
typedef struct
@@ -167,10 +168,15 @@ extern int _isProxy;
extern int _proxyPrivateOnly;
/**
- * Read timeout when waiting for data on an uplink
+ * Read timeout when waiting for or sending data on an uplink
*/
extern int _uplinkTimeout;
+/**
+ * Read timeout when waiting for or sending data fron/to client
+ */
+extern int _clientTimeout;
+
void globals_loadConfig();
#endif /* GLOBALS_H_ */