From aa015d63d1d8c7b0273fd6eaf10c92de76c548b3 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 29 Dec 2006 09:21:35 +0000 Subject: [PATCH] Log 'client blocked' messages before closing the socket descriptor, which changes its valid to INVALID_SOCKET (-1) --- src/sbbs3/websrvr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index 155843f522..f202c2bb57 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -4393,11 +4393,11 @@ void http_session_thread(void* arg) && host->h_aliases[i]!=NULL;i++) lprintf(LOG_INFO,"%04d HostAlias: %s", session.socket, host->h_aliases[i]); if(trashcan(&scfg,host_name,"host")) { + lprintf(LOG_NOTICE,"%04d !CLIENT BLOCKED in host.can: %s", session.socket, host_name); close_socket(&session.socket); sem_wait(&session.output_thread_terminated); sem_destroy(&session.output_thread_terminated); RingBufDispose(&session.outbuf); - lprintf(LOG_NOTICE,"%04d !CLIENT BLOCKED in host.can: %s", session.socket, host_name); thread_down(); session_threads--; return; @@ -4406,11 +4406,11 @@ void http_session_thread(void* arg) /* host_ip wasn't defined in http_session_thread */ if(trashcan(&scfg,session.host_ip,"ip")) { + lprintf(LOG_NOTICE,"%04d !CLIENT BLOCKED in ip.can: %s", session.socket, session.host_ip); close_socket(&session.socket); sem_wait(&session.output_thread_terminated); sem_destroy(&session.output_thread_terminated); RingBufDispose(&session.outbuf); - lprintf(LOG_NOTICE,"%04d !CLIENT BLOCKED in ip.can: %s", session.socket, session.host_ip); thread_down(); session_threads--; return; -- GitLab