diff options
author | Simon Rettberg | 2017-10-17 14:12:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-17 14:12:24 +0200 |
commit | 50d5e7351d5339c4da700a8c2b20e7a5c1992ce8 (patch) | |
tree | 0b06ed2d3df3d6af5a65bc12579f7bb7b36d1f3c /src/server/globals.h | |
parent | [*] Support hop-counting in request header, protocol version 3 (diff) | |
download | dnbd3-50d5e7351d5339c4da700a8c2b20e7a5c1992ce8.tar.gz dnbd3-50d5e7351d5339c4da700a8c2b20e7a5c1992ce8.tar.xz dnbd3-50d5e7351d5339c4da700a8c2b20e7a5c1992ce8.zip |
[SERVER] Try to connect to different server if proxy cycle is detected
Diffstat (limited to 'src/server/globals.h')
-rw-r--r-- | src/server/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/globals.h b/src/server/globals.h index b1740f4..41d52df 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -60,6 +60,7 @@ struct _dnbd3_connection uint32_t recvBufferLen; // Len of ^^ volatile bool shutdown; // signal this thread to stop, must only be set from uplink_shutdown() or cleanup in uplink_mainloop() bool replicatedLastBlock; // bool telling if the last block has been replicated yet + bool cycleDetected; // connection cycle between proxies detected for current remote server int nextReplicationIndex; // Which index in the cache map we should start looking for incomplete blocks at uint64_t replicationHandle; // Handle of pending replication request uint64_t bytesReceived; // Number of bytes received by the connection. |