Comments (2)
That would definitely make sense, but we currently don't have a good flushing strategy for streaming bodies. Ideally we'd like to ensure that buffered compressed data gets flushed after a short delay (or in the case of SSE, per-frame), but we cannot guarantee that compressed data will be flushed.
from deno.
Is the flushing issue around the serving having written an event terminated by multiple new lines but the CompressionStream
, due to the way the gzip and/or deflate algorithm works, is awaiting more bytes to potentially better compress the outgoing data?
That makes more sense to me now that I type it out. 🤔
So, as it is right now maybe compressing an event stream isn't a good idea for servers because it could delay events being delivered to clients… I guess events should be small then and link to larger resources where necessary rather than inlining them.
from deno.
Related Issues (20)
- Private class members are broken when you use a dynamic import to import @google-labs/breadboard HOT 1
- Ability to supress JSR publish warnings
- Deno workers: Uncaught (in worker "") Error: The language "undefined" has no grammar
- deno_runtime extension_with_ops example fails to find registered op HOT 13
- VSCode extension: enablePaths not disabling TS language server
- `remix dev` not working
- type inference for drizzle-orm is working with tsc but not with deno HOT 1
- `nuxt dev` without BYONM fails at installations
- `npm:@angular/cli` not working
- `npm:@11ty/eleventy --serve` not working HOT 1
- auto install for a Quasar app takes long time HOT 1
- missing reexport of `validateHeaderName` and `validateHeaderValue` in `node:http`
- http2.createServer() example doesn't work in deno
- Assertion failure in `ext/web/06_streams.js` when stream[_state] === 'closed' HOT 1
- `websocket_server_idletimeout` suggests that there is a timer issue with WebSocket `idleTimeout`
- error: "Leaks detected" using createWriteStream from 'node:fs' in tests HOT 5
- deno doesn't work with serverless-http and serverless-express HOT 1
- VSCode Jupyter integration: ts and deno enabled at the same time? HOT 2
- `node:worker_threads` and WebAPI `Workers` don't terminate HOT 7
- [feature-request] [jupyter] support entering a value inline, with the web standard function `prompt`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno.