* Various debugging type of everythingism to help chat mode to work.
authorArt Cancro <ajc@citadel.org>
Mon, 21 Feb 2005 21:57:56 +0000 (21:57 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 21 Feb 2005 21:57:56 +0000 (21:57 +0000)
webcit/ChangeLog
webcit/context_loop.c
webcit/paging.c
webcit/webcit.h

index 98557822c14d764734e653a20d60b3d81f50cf9b..d3e62e87758e6065d14ca5d874d18856cbf6352c 100644 (file)
@@ -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 <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 9389591d693d2c0b2a4d7529c797c8cfeeaa2b4d..12a641e1aa8a8768c08ee14ea4fd1decbb4bed28 100644 (file)
@@ -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 */
index bc3fc936ea56f112423abb1d5e4d0c410a3888a3..c892b7a64ed9926286d76b34962692e584450297 100644 (file)
@@ -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("<IMG SRC=\"/static/blank.gif\" onLoad=\"parent.window.close();\">\n");
@@ -338,7 +336,6 @@ void chat_recv(void) {
                }
 
                /* Output our fun to the other frame. */
-               lprintf(9, "output to other frame\n");
                wprintf("<IMG SRC=\"/static/blank.gif\" WIDTH=1 HEIGHT=1\n"
                        "onLoad=\" \n"
                );
@@ -400,7 +397,6 @@ void chat_recv(void) {
                }
 
                wprintf("parent.chat_transcript.scrollTo(999999,999999);\">\n");
-               lprintf(9, "done fun\n");
        }
 
        free(output_data);
index 28fd24f6da7ff1796170d498728068290803ac67..43dc8f6b708707824c829081389e019cbaa73fbd 100644 (file)
 #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"