On 12/11/2005 02:49 AM, Roy T. Fielding wrote:
> On Dec 10, 2005, at 5:30 PM, Ruediger Pluem wrote:
> 

[..cut..]

> 
> 
> Ideally it would be in APR, but that runs into version problems.  Since
> it is a general streams issue, I would put the function in httpd.h, but
> right now I just want to know if it works at all (since I have no way
> of testing it).

Although I would like Brian to do a final test, it seems to work. I reverse
proxied to a Tomcat running the following jsp:

<%@ page import="java.util.Date"%><%
    Date datum;

    datum = new Date();
    response.setDateHeader("Expires",datum.getTime()+60000);
%>
<html>
<head>
<title>
Test
</title>
</head>
<body>
Start<br/>
<%

 long i;

 for (i=0; i < 10000; i++) {
%>
test<br/>
<%
out.flush();
Thread.sleep(100);
}
%>
Finish<br/>
</html>

via

ProxyPass /test balancer://mycluster/test stickysession=JSESSIONID nofailover=On

<Proxy balancer://mycluster>
BalancerMember http://127.0.0.1:8080 route=test
</Proxy>

And just killed the Tomcat via kill -9 before the answer was complete.
httpd correctly discards the content cached so far now.

Regards

RĂ¼diger

[..cut..]

Reply via email to