reply.setState(JigsawHttpServletResponse.STREAM, pos);
reply.setStream(pis);
Object o = new Object();
reply.setState(JigsawHttpServletResponse.MONITOR, o);
// wait until the reply is constructed by the processing thread
ServerInterface server = getServer();
if (server instanceof httpd) {
synchronized (o) {
wrapper.service(request, reply);
o.wait((long)((httpd)server).getRequestTimeOut());
}