data at once instead of one character at a time
$Log$
+ Revision 591.28 2002/05/17 03:57:30 ajc
+ * When doing fixed_output() of converted HTML, output the whole block of
+ data at once instead of one character at a time
+
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)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
else if (!strcasecmp(cbtype, "text/html")) {
ptr = html_to_ascii(content, 80, 0);
wlen = strlen(ptr);
- wptr = ptr;
- while (wlen--) {
- ch = *wptr++;
- if (ch==10) cprintf("\r\n");
- else cprintf("%c", ch);
+ client_write(ptr, wlen);
+ if (ptr[wlen-1] != '\n') {
+ cprintf("\n");
}
phree(ptr);
}