Commit 5dfdf1c4 authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

HTTP Connection wasn't being set as closed when the request was timed out.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5960 b35dd754-fafc-0310-a699-88a17e54d16e
parent 66c1484c
...@@ -94,15 +94,20 @@ public class HttpConnection { ...@@ -94,15 +94,20 @@ public class HttpConnection {
* deliverable currently available. Once the deliverable becomes available it is returned. * deliverable currently available. Once the deliverable becomes available it is returned.
* *
* @return the deliverable to send to the client * @return the deliverable to send to the client
*
* @throws HttpBindTimeoutException to indicate that the maximum wait time requested by the * @throws HttpBindTimeoutException to indicate that the maximum wait time requested by the
* client has been surpassed and an empty response should be returned. * client has been surpassed and an empty response should be returned.
*/ */
public String getDeliverable() throws HttpBindTimeoutException { public String getDeliverable() throws HttpBindTimeoutException {
if (body == null && continuation != null) { if (body == null && continuation != null) {
body = waitForDeliverable(); try {
body = waitForDeliverable();
}
catch (HttpBindTimeoutException e) {
this.isClosed = true;
throw e;
}
} }
else if (body == null && continuation == null) { else if (body == null) {
throw new IllegalStateException("Continuation not set, cannot wait for deliverable."); throw new IllegalStateException("Continuation not set, cannot wait for deliverable.");
} }
return body; return body;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment