At 01:34 PM 6/14/99 -0700, you wrote:
>no data is being sent to the client from the servlet until
>servlet service() method returns when I run Apache-JServ on
>Win32, which makes server push impossible.

This fixes it: 

in the jserv_ajpv11.c  int ajpv11_handler()

instead of

                if (!r->header_only) ap_send_fb(buffsocket, r);

do

    if (!r->header_only) {
        int b_wr = r->connection->client & B_WR;
        ap_bflush(r->connection->client);
        /* Force ap_bwrite() to do unbuffered writes to
r->connection->client */
        ap_bsetflag(r->connection->client, B_WR, 0);
        ap_send_fb(buffsocket, r);
        ap_bsetflag(r->connection->client, B_WR, b_wr);
    }

this will force Apache to send data from the servlet directly to
the client without buffering.

Dimitri




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to