]> code.citadel.org Git - citadel.git/blobdiff - webcit/paging.c
* add logging if auth-basic session connecting fails with weird conditions
[citadel.git] / webcit / paging.c
index 7f81049d4781dc99ec19369f92a61eee0ba1427c..e93ac646bda13cd044668a182b47b3cef414b237 100644 (file)
@@ -279,6 +279,7 @@ void chat_recv(void) {
        output_headers(0, 0, 0, 0, 0, 0);
 
        hprintf("Content-type: text/html; charset=utf-8\r\n");
+       begin_burst();
        wprintf("<html>\n"
                "<head>\n"
                "<meta http-equiv=\"refresh\" content=\"3\" />\n"
@@ -426,6 +427,7 @@ void chat_send(void) {
 
        output_headers(0, 0, 0, 0, 0, 0);
        hprintf("Content-type: text/html; charset=utf-8\r\n");
+       begin_burst();
        wprintf("<HTML>"
                "<BODY onLoad=\"document.chatsendform.send_this.focus();\" >"
        );
@@ -527,3 +529,12 @@ InitModule_PAGING
        WebcitAddUrlHandler(HKEY("chat_send"), chat_send, 0);
        WebcitAddUrlHandler(HKEY("ajax_send_instant_message"), ajax_send_instant_message, AJAX);
 }
+
+
+void 
+SessionDestroyModule_CHAT
+(wcsession *sess)
+{
+       if (sess->chat_sock > 0)
+               close(sess->chat_sock);
+}