From a042da883b8ad8bf711abc558cb319b6d8c252f1 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 8 Nov 2007 23:05:25 +0000 Subject: [PATCH] Fixed the problem dave reported yesterday, where a large calendar hung the webcit renderer while displaying. This turned out to have nothing to do with the size of the calendar, but with a specific event that had no newline at the end and caused the 000 terminator to appear at the end of a line instead of on its own line. Switched from MSG0 to MSG4 in webcit to both work around this problem and save over-the-wire chatter. Dave's work from last night plus this commit, resolve bug #284. --- webcit/calendar.c | 2 +- webcit/messages.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index d9a3a2475..6ea3cd7ff 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -779,7 +779,7 @@ void display_using_handler(long msgnum, icalcomponent *cal, *c; relevant_partnum[0] = '\0'; - sprintf(buf, "MSG0 %ld|0", msgnum); /* unfortunately we need the mime headers */ + sprintf(buf, "MSG4 %ld", msgnum); /* we need the mime headers */ serv_puts(buf); serv_getln(buf, sizeof buf); if (buf[0] != '1') return; diff --git a/webcit/messages.c b/webcit/messages.c index 1160e7dfb..b50d09250 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -2559,7 +2559,6 @@ void readloop(char *oper) - for (a = 0; a < nummsgs; ++a) { if ((WCC->msgarr[a] >= startmsg) && (num_displayed < maxmsgs)) { -- 2.39.2