mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 10:36:53 +00:00
disable response buffering on the websocket
Jersey buffers responses (by default up to 8192 bytes) just so it can add a content length to responses. We already buffer our responses to serialize them as protos, so we can compute the content length ourselves. Setting the buffer to zero disables buffering.
This commit is contained in:
1 parent
2dc0ea2b89
commit
9e510a678c
4 files changed
+147
-1
No files matched your search
+1
@@ -137,6 +137,7 @@ class WebSocketResourceProviderTest {
|
||||
return "OK";
|
||||
}
|
||||
});
|
||||
when(response.getHeaders()).thenReturn(new MultivaluedHashMap<>());
|
||||
|
||||
ArgumentCaptor<OutputStream> responseOutputStream = ArgumentCaptor.forClass(OutputStream.class);
|
||||
|
||||
|
||||
Reference in new issue
Block a user