$Log$
+ Revision 591.27 2002/05/16 04:44:58 ajc
+ * Reduce the number of socket writes when doing fixed_output() to avoid
+ getting killed by overhead. (Thanks to IO for the insight)
+
Revision 591.26 2002/05/14 15:25:34 error
* room_ops.c: clarified aide message when room aide is removed
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
if ( (!strcasecmp(cbtype, "text/plain"))
|| (strlen(cbtype)==0) ) {
- wlen = length;
wptr = content;
- while (wlen--) {
- ch = *wptr++;
- /**********
- if (ch==10) cprintf("\r\n");
- else cprintf("%c", ch);
- **********/
- cprintf("%c", ch);
+ if (length > 0) {
+ client_write(wptr, length);
+ if (wptr[length-1] != '\n') {
+ cprintf("\n");
+ }
}
- if (ch != '\n') cprintf("\n");
}
else if (!strcasecmp(cbtype, "text/html")) {
ptr = html_to_ascii(content, 80, 0);