flush_output(). (basically anywhere where we send a response and then
wait for the client, except chat, where we turned it off entirely)
+ Revision 625.13 2004/09/05 17:39:09 error
+ * Buffered output needs to be flushed in several places. Added calls to
+ flush_output(). (basically anywhere where we send a response and then
+ wait for the client, except chat, where we turned it off entirely)
+
Revision 625.12 2004/09/05 15:41:45 error
* Network optimizations - buffer output server-side for better network
utilization; one client-side optimization
Revision 625.12 2004/09/05 15:41:45 error
* Network optimizations - buffer output server-side for better network
utilization; one client-side optimization
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
return;
}
cprintf("%d %s\n", SEND_LISTING, targ);
return;
}
cprintf("%d %s\n", SEND_LISTING, targ);
while (client_gets(buf), strcmp(buf, "000")) {
fprintf(mfp, "%s\n", buf);
while (client_gets(buf), strcmp(buf, "000")) {
fprintf(mfp, "%s\n", buf);
else if (!strcasecmp(cmd, "SET")) {
cprintf("%d Send configuration...\n", SEND_LISTING);
else if (!strcasecmp(cmd, "SET")) {
cprintf("%d Send configuration...\n", SEND_LISTING);
a = 0;
while (client_gets(buf), strcmp(buf, "000")) {
switch (a) {
a = 0;
while (client_gets(buf), strcmp(buf, "000")) {
switch (a) {
else if (!strcasecmp(cmd, "PUTSYS")) {
extract(confname, argbuf, 1);
cprintf("%d %s\n", SEND_LISTING, confname);
else if (!strcasecmp(cmd, "PUTSYS")) {
extract(confname, argbuf, 1);
cprintf("%d %s\n", SEND_LISTING, confname);
confptr = CtdlReadMessageBody("000",
config.c_maxmsglen, NULL, 0);
CtdlPutSysConfig(confname, confptr);
confptr = CtdlReadMessageBody("000",
config.c_maxmsglen, NULL, 0);
CtdlPutSysConfig(confname, confptr);
}
cprintf("%d %d\n", SEND_BINARY, bytes);
}
cprintf("%d %d\n", SEND_BINARY, bytes);
client_read(buf, bytes);
fwrite(buf, bytes, 1, CC->upload_fp);
}
client_read(buf, bytes);
fwrite(buf, bytes, 1, CC->upload_fp);
}
/* Read in the message from the client. */
cprintf("%d send message\n", SEND_LISTING);
/* Read in the message from the client. */
cprintf("%d send message\n", SEND_LISTING);
msg = CtdlMakeMessage(&CC->user, recp,
CC->room.QRname, anonymous, format_type,
masquerade_as, subject, NULL);
msg = CtdlMakeMessage(&CC->user, recp,
CC->room.QRname, anonymous, format_type,
masquerade_as, subject, NULL);
return;
}
cprintf("%d Send info...\n", SEND_LISTING);
return;
}
cprintf("%d Send info...\n", SEND_LISTING);
return;
}
cprintf("%d \n",SEND_LISTING);
return;
}
cprintf("%d \n",SEND_LISTING);
while(client_gets(buf), strcmp(buf,"000")) {
if (ftell(fp) < config.c_maxmsglen) {
fprintf(fp,"%s\n",buf);
while(client_gets(buf), strcmp(buf,"000")) {
if (ftell(fp) < config.c_maxmsglen) {
fprintf(fp,"%s\n",buf);
}
cprintf("%d Transmit message (will deliver to %d users)\n",
SEND_LISTING, message_sent);
}
cprintf("%d Transmit message (will deliver to %d users)\n",
SEND_LISTING, message_sent);
x_big_msgbuf = malloc(SIZ);
memset(x_big_msgbuf, 0, SIZ);
while (client_gets(x_msg), strcmp(x_msg, "000")) {
x_big_msgbuf = malloc(SIZ);
memset(x_big_msgbuf, 0, SIZ);
while (client_gets(x_msg), strcmp(x_msg, "000")) {
}
cprintf("%d %s\n", SEND_LISTING, tempfilename);
}
cprintf("%d %s\n", SEND_LISTING, tempfilename);
while (client_gets(buf), strcmp(buf, "000")) {
fprintf(fp, "%s\n", buf);
}
while (client_gets(buf), strcmp(buf, "000")) {
fprintf(fp, "%s\n", buf);
}
int version;
cprintf("%d sock it to me\n", SEND_LISTING);
int version;
cprintf("%d sock it to me\n", SEND_LISTING);
while (client_gets(buf), strcmp(buf, "000")) {
lprintf(CTDL_DEBUG, "import keyword: <%s>\n", buf);
while (client_gets(buf), strcmp(buf, "000")) {
lprintf(CTDL_DEBUG, "import keyword: <%s>\n", buf);
strcpy(tmpcountry, "USA");
cprintf("%d Send registration...\n", SEND_LISTING);
strcpy(tmpcountry, "USA");
cprintf("%d Send registration...\n", SEND_LISTING);
a=0;
while (client_gets(buf), strcmp(buf,"000")) {
if (a==0) vcard_set_prop(my_vcard, "n", buf, 0);
a=0;
while (client_gets(buf), strcmp(buf,"000")) {
if (a==0) vcard_set_prop(my_vcard, "n", buf, 0);