server session BUGFIX return proper value on timeout
diff --git a/src/session_server.c b/src/session_server.c
index 6438543..3a4c509 100644
--- a/src/session_server.c
+++ b/src/session_server.c
@@ -1452,6 +1452,9 @@
         /* WRITE UNLOCK */
         pthread_rwlock_unlock(&server_opts.endpt_array_lock);
         free(host);
+        if (!ret) {
+            return NC_MSG_WOULDBLOCK;
+        }
         return NC_MSG_ERROR;
     }
     sock = ret;