Always close the output stream after a request has completed.
[jsvc.git] / src / dolda / jsvc / RequestThread.java
index c6b9373..7940748 100644 (file)
@@ -12,6 +12,11 @@ public class RequestThread extends Thread {
     
     public void run() {
        resp.respond(req);
+       try {
+           req.output().close();
+       } catch(java.io.IOException e) {
+           throw(new RuntimeException(e));
+       }
     }
     
     public static Request request() {