Commit c7dd49bd authored by Guus der Kinderen's avatar Guus der Kinderen

OF-885: Set buffer size to prevent chunked encoding.

parent b472ce78
......@@ -455,6 +455,11 @@ public class HttpBindServlet extends HttpServlet {
@Override
public void onWritePossible() throws IOException {
Log.trace("Data can be written to [" + remoteAddress + "]");
// BOSH communication should not have Chunked encoding. Ensure that the
// buffer can hold the entire response to prevent chunking.
context.getResponse().setBufferSize(data.length);
context.getResponse().getOutputStream().write(data);
context.complete();
}
......
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