summaryrefslogtreecommitdiffstats
path: root/src/server/uplink.c
diff options
context:
space:
mode:
authorSimon Rettberg2014-02-13 17:34:30 +0100
committerSimon Rettberg2014-02-13 17:34:30 +0100
commitbdd558b79fa78d6ab258aa4eea7004ebe1df5384 (patch)
tree8395847778dd6403c8ab9912ffed37794a6caa63 /src/server/uplink.c
parent[*] Add automatic version string generation (diff)
downloaddnbd3-bdd558b79fa78d6ab258aa4eea7004ebe1df5384.tar.gz
dnbd3-bdd558b79fa78d6ab258aa4eea7004ebe1df5384.tar.xz
dnbd3-bdd558b79fa78d6ab258aa4eea7004ebe1df5384.zip
[SERVER] Thread and uplink handling
Diffstat (limited to 'src/server/uplink.c')
-rw-r--r--src/server/uplink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/uplink.c b/src/server/uplink.c
index c49ff35..b6f7887 100644
--- a/src/server/uplink.c
+++ b/src/server/uplink.c
@@ -384,6 +384,7 @@ static void* uplink_mainloop(void *data)
snprintf( buffer, sizeof(buffer), "[DEBUG WARNING] Starving request detected:\n"
"%s\n(from %" PRIu64 " to %" PRIu64 ", status: %d)\n", link->queue[i].client->image->lower_name,
link->queue[i].from, link->queue[i].to, link->queue[i].status );
+ link->queue[i].status = ULR_NEW;
spin_unlock( &link->queueLock );
printf("%s", buffer);
spin_lock( &link->queueLock );