Comments (5)
It seems something like this helps:
- let outgoing_resp = outgoing_resp_builder.body(upstream_resp.body().await?);
+ let outgoing_resp = outgoing_resp_builder.body(upstream_resp.body().limit(20_000_000).await?);
See https://docs.rs/awc/2.0.3/awc/struct.MessageBody.html#method.limit
By default, the limit is 256kB
from proxyboi.
Hm, that doesn't seem to make the limit larger.
from proxyboi.
Well, maybe not for big uploads, but for big downloads, it definitely solved my error.
from proxyboi.
Oh yeah sorry I totally missed this. Will take a look soon.
from proxyboi.
from proxyboi.
Related Issues (20)
- Add feature to allow for disabling HTTP2
- Also log print body HOT 1
- Sometimes sends transfer-encoding: chunked and content-length at the same time
- Put versions into release names
- Question isn't codegen ignored if we have set lto to true? HOT 6
- Use middleware for debug printing so that we can inspect the real final headers of the request
- [Question] What do opt level z means? HOT 2
- Allow sending additional headers to upstream proxy HOT 2
- export as lib
- No way to specify a timeout HOT 3
- Release for linux-x86_64 fails to execute HOT 1
- Error message: Address not available HOT 10
- Current version published on crates.io fails to compile
- ARM64 Support, on Docker
- websocket support? HOT 1
- Don't set x-forwarded-for by default?
- Add --request-header
- Can't proxy to a server presenting a certificate with an IP address in its common name HOT 2
- parse_header() doesn't accept header values containing ':'
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 proxyboi.