--- ../../apache_1.1b4_pure/src/http_protocol.c Mon Jun 17 13:55:25 1996 +++ http_protocol.c Mon Jul 8 17:19:27 1996 @@ -734,8 +734,20 @@ bputs("\015\012",fd); +#ifdef ISI_NOFLUSH_HEADERS + /* + * Flushing the output stream at this point sends a sub-size + * segment. Sub-size segments interact poorly with BSD-TCP's + * slow-start and delayed acknowledgment algorithms, resulting + * in a delayed acknowledgment of a later packet and therefore + * up to 200ms additional delay. Avoid this problem by not + * flushing the stream. + * -John Heidemann + */ +#else /* ! ISI_NOFLUSH_HEADERS */ if (c->keepalive) bflush(r->connection->client); /* For bugs in Netscape, perhaps */ +#endif /* ISI_NOFLUSH_HEADERS */ bsetopt(fd, BO_BYTECT, &zero); r->sent_bodyct = 1; /* Whatever follows is real body stuff... */