Commit 91dd763
committed
perf(eio): stream compressed polling responses
Pipe gzip/deflate output directly to the polling HTTP response instead of
buffering compressed chunks in memory before sending them.
This reduces memory usage for large compressed polling payloads while keeping
the existing compression threshold and content negotiation behavior.
See also: d11e17c (engine.io@1.6.0, Nov 2015)1 parent ef02660 commit 91dd763
1 file changed
Lines changed: 19 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 317 | + | |
324 | 318 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
| 319 | + | |
| 320 | + | |
329 | 321 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 322 | + | |
337 | 323 | | |
338 | | - | |
339 | | - | |
| 324 | + | |
340 | 325 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
351 | 340 | | |
352 | 341 | | |
353 | 342 | | |
| |||
0 commit comments