From 59578851dc724c78ba658202856c9d9734b26630 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 21 Feb 2005 21:57:56 +0000 Subject: [PATCH] * Various debugging type of everythingism to help chat mode to work. --- webcit/ChangeLog | 4 ++++ webcit/context_loop.c | 3 --- webcit/paging.c | 4 ---- webcit/webcit.h | 4 ++-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 98557822c..d3e62e877 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 602.10 2005/02/21 21:57:55 ajc +* Various debugging type of everythingism to help chat mode to work. + Revision 602.9 2005/02/21 04:47:41 ajc * When creating rooms: * 1. Selecting a view other than "Bulletin Board" causes the room access @@ -2420,3 +2423,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 9389591d6..12a641e1a 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -412,14 +412,11 @@ void context_loop(int sock) /* * Bind to the session and perform the transaction */ - lprintf(9, "LOCKING SESSION %d\n", TheSession->wc_session); pthread_mutex_lock(&TheSession->SessionMutex); /* bind */ - lprintf(9, "LOCKKED SESSION %d\n", TheSession->wc_session); pthread_setspecific(MyConKey, (void *)TheSession); TheSession->http_sock = sock; TheSession->lastreq = time(NULL); /* log */ session_loop(req); /* do transaction */ - lprintf(9, "UNLKING SESSION %d\n", TheSession->wc_session); pthread_mutex_unlock(&TheSession->SessionMutex); /* unbind */ /* Free the request buffer */ diff --git a/webcit/paging.c b/webcit/paging.c index bc3fc936e..c892b7a64 100644 --- a/webcit/paging.c +++ b/webcit/paging.c @@ -268,7 +268,6 @@ void chat_recv(void) { char cl_text[SIZ]; char *output_data = NULL; - lprintf(9, "chat_recv() called\n"); output_headers(0, 0, 0, 0, 0, 0, 0); wprintf("Content-type: text/html\n"); @@ -325,7 +324,6 @@ void chat_recv(void) { } while ( (got_data) && (!end_chat_now) ); if (end_chat_now) { - lprintf(9, "exiting chat\n"); close(WC->chat_sock); WC->chat_sock = (-1); wprintf("\n"); @@ -338,7 +336,6 @@ void chat_recv(void) { } /* Output our fun to the other frame. */ - lprintf(9, "output to other frame\n"); wprintf("\n"); - lprintf(9, "done fun\n"); } free(output_data); diff --git a/webcit/webcit.h b/webcit/webcit.h index 28fd24f6d..43dc8f6b7 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -32,10 +32,10 @@ #define SLEEPING 180 /* TCP connection timeout */ #define WEBCIT_TIMEOUT 900 /* WebCit session timeout */ #define PORT_NUM 2000 /* port number to listen on */ -#define SERVER "WebCit v6.02" /* who's in da house */ +#define SERVER "WebCit v6.03" /* who's in da house */ #define DEVELOPER_ID 0 #define CLIENT_ID 4 -#define CLIENT_VERSION 602 /* This version of WebCit */ +#define CLIENT_VERSION 603 /* This version of WebCit */ #define MINIMUM_CIT_VERSION 640 /* min required Citadel vers */ #define DEFAULT_HOST "localhost" /* Default Citadel server */ #define DEFAULT_PORT "504" -- 2.39.2