|
1 | 1 | diff --git a/dist/BunHttpServer.js b/dist/BunHttpServer.js |
2 | | -index 5fb0cbacc183b58e31a442badf4aef06bebcd592..c74a79be2657ab5e42f21351aa4c206dec13ec06 100644 |
| 2 | +index 5fb0cbacc183b58e31a442badf4aef06bebcd592..2c3d2ea9a727b71e502f9e5c207340dfa0f63879 100644 |
3 | 3 | --- a/dist/BunHttpServer.js |
4 | 4 | +++ b/dist/BunHttpServer.js |
5 | | -@@ -45,6 +45,14 @@ export const make = /*#__PURE__*/Effect.fnUntraced(function* (options) { |
| 5 | +@@ -45,6 +45,17 @@ export const make = /*#__PURE__*/Effect.fnUntraced(function* (options) { |
6 | 6 | ...options, |
7 | 7 | fetch: handlerStack[0], |
8 | 8 | websocket: { |
9 | 9 | + // Negotiate permessage-deflate with clients that offer it; clients that |
10 | | -+ // don't still get uncompressed frames on their connection. Dedicated |
11 | | -+ // compressors keep per-connection sliding windows (context takeover) so |
12 | | -+ // the compression dictionary is shared across frames. |
| 10 | ++ // don't still get uncompressed frames on their connection. A dedicated |
| 11 | ++ // compressor keeps a per-connection sliding window (context takeover) so |
| 12 | ++ // the compression dictionary is shared across server-to-client frames. |
| 13 | ++ // Decompression uses the shared decompressor: uWebSockets' dedicated |
| 14 | ++ // decompressor path can abort connections (close 1006) on valid DEFLATE |
| 15 | ++ // input — see https://github.com/uNetworking/uWebSockets.js/issues/633. |
13 | 16 | + perMessageDeflate: { |
14 | 17 | + compress: "dedicated", |
15 | | -+ decompress: "dedicated" |
| 18 | ++ decompress: "shared" |
16 | 19 | + }, |
17 | 20 | open(ws) { |
18 | 21 | Deferred.doneUnsafe(ws.data.deferred, Exit.succeed(ws)); |
19 | 22 | }, |
20 | 23 | diff --git a/src/BunHttpServer.ts b/src/BunHttpServer.ts |
21 | | -index 9f2ac3dfc018e2d35c6f44785f1ce05e2e06fc7c..c1e5869fecc5d635ff89cd303feaf1efd6d06ef4 100644 |
| 24 | +index 9f2ac3dfc018e2d35c6f44785f1ce05e2e06fc7c..84f3062d880d05f5a680ec89a5f0a1b78a3ba0dc 100644 |
22 | 25 | --- a/src/BunHttpServer.ts |
23 | 26 | +++ b/src/BunHttpServer.ts |
24 | | -@@ -90,6 +90,14 @@ export const make = Effect.fnUntraced( |
| 27 | +@@ -90,6 +90,17 @@ export const make = Effect.fnUntraced( |
25 | 28 | ...options as ServeOptions<R>, |
26 | 29 | fetch: handlerStack[0], |
27 | 30 | websocket: { |
28 | 31 | + // Negotiate permessage-deflate with clients that offer it; clients that |
29 | | -+ // don't still get uncompressed frames on their connection. Dedicated |
30 | | -+ // compressors keep per-connection sliding windows (context takeover) so |
31 | | -+ // the compression dictionary is shared across frames. |
| 32 | ++ // don't still get uncompressed frames on their connection. A dedicated |
| 33 | ++ // compressor keeps a per-connection sliding window (context takeover) so |
| 34 | ++ // the compression dictionary is shared across server-to-client frames. |
| 35 | ++ // Decompression uses the shared decompressor: uWebSockets' dedicated |
| 36 | ++ // decompressor path can abort connections (close 1006) on valid DEFLATE |
| 37 | ++ // input — see https://github.com/uNetworking/uWebSockets.js/issues/633. |
32 | 38 | + perMessageDeflate: { |
33 | 39 | + compress: "dedicated", |
34 | | -+ decompress: "dedicated" |
| 40 | ++ decompress: "shared" |
35 | 41 | + }, |
36 | 42 | open(ws) { |
37 | 43 | Deferred.doneUnsafe(ws.data.deferred, Exit.succeed(ws)) |
|
0 commit comments