diff options
author | Simon Rettberg | 2014-12-22 19:46:42 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-12-22 19:46:42 +0100 |
commit | 47c28e25055cfa3c4c37035cc7888d0b87392dc1 (patch) | |
tree | f3213a89b18ddca597106af892f54bc429fc7689 /src/server/globals.h | |
parent | [SERVER] Configurable client timeout, adaptive replication speed (to be teste... (diff) | |
download | dnbd3-47c28e25055cfa3c4c37035cc7888d0b87392dc1.tar.gz dnbd3-47c28e25055cfa3c4c37035cc7888d0b87392dc1.tar.xz dnbd3-47c28e25055cfa3c4c37035cc7888d0b87392dc1.zip |
[SERVER] Improve replication and reconnecting behaviour
Diffstat (limited to 'src/server/globals.h')
-rw-r--r-- | src/server/globals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/globals.h b/src/server/globals.h index c215916..037cd08 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -41,7 +41,7 @@ typedef struct #define RTT_NOT_REACHABLE 4 // No uplink was reachable struct _dnbd3_connection { - int fd; // socket fd to remote server + volatile int fd; // socket fd to remote server int signal; // eventfd used to wake up the process pthread_t thread; // thread holding the connection pthread_spinlock_t queueLock; // lock for synchronization on request queue etc. |