Comments (3)
I actually have a few things on the backlog to refine this behaviour (mostly stemming from this issue).
- If a
content-length
header is set when a user calledsend_chunked/2
, just send a non transfer-encoded response body out as bare bytes as the user callschunk/2
(this is already what we do for HTTP/2, which doesn't do transfer-encoding) - I have to verify that we're doing the right thing with sending a content-length header for HEAD/304 (where we MAY send it) and 204 (where we MUST NOT send it)
from bandit.
Oh I get it now. The body is not returned for HEAD
request as expected. I assume the body is necessary to set to calculate the right length depending on the compression?
from bandit.
Ok, I figured out the issue I had. Bandit does need the body to calculate length, can't just set it, makes sense. Also my HTTP client was accepting gzip, Bandit responded accordingly when I was simulating streaming from S3. Setting http_options: [compress: false]]
makes this work like AWS. All good, got confused how this was supposed to function 😄
from bandit.
Related Issues (20)
- Detailed Benchmark Comparison (not just Cowboy, but Go/Java/etc) HOT 4
- Password for key in SSL HOT 4
- Plug.Conn.chunk does not send the chunk to client HOT 3
- Unknown adapter Bandit.Adapter after update to Bandit 1.4.0 HOT 3
- High Memory usage for DelegatingHandler.init/1 HOT 24
- Missing measurements in telemetry events HOT 6
- Plug.Conn is not closed when user closes the browser's tab (SSE) HOT 14
- High CPU usage HOT 2
- Compression configuration options HOT 1
- Clearing process dictionary breaks on some keys HOT 2
- Bandit + Phoenix LiveView on Safari iOS Fails to Reconnect HOT 6
- More examples in documentation HOT 1
- Otel question HOT 2
- Reproducible: Server hangs on every other request HOT 6
- Exceptions get logged from Firefox client, but not from cURL HOT 10
- Lots of `(Bandit.HTTPError) closed` errors HOT 7
- Consider sticking to semantic versioning HOT 3
- (UndefinedFunctionError) function Bandit.WebSocket.Socket.close/2 is undefined or private HOT 2
- Bandit from 1.3 to 1.5 ENOTCONN errors
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 bandit.