Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 584a24e0 authored by rswindell's avatar rswindell

Don't wait for QWK packet creation if the server has been locally terminated.

Double the duration to wait for client threads to terminate. Heck, this might
should be an infinite wait since "bad things" happen if the client thread
continues after a cleanup().
parent 19e4f255
......@@ -5022,7 +5022,7 @@ static void ctrl_thread(void* arg)
lprintf(LOG_ERR,"%04d <%s> !ERROR creating semaphore file: %s"
,sock, user.alias, str);
while(fexist(str)) {
while(fexist(str) && !terminate_server) {
......@@ -6204,7 +6204,7 @@ void DLLCALL ftp_server(void* arg)
, protected_uint32_value(active_clients));
while(protected_uint32_value(active_clients)) {
if(time(NULL)-start>startup->max_inactivity) {
if(time(NULL)-start > startup->max_inactivity * 2) {
lprintf(LOG_WARNING,"0000 !TIMEOUT waiting for %d active clients"
, protected_uint32_value(active_clients));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment