Comments (9)
great catch, I thought about, buffer is too generic though, I promise to rename it if you come up with a great name :-)
from oxy.
StreamBuffer
from oxy.
@bradgignac too long
from oxy.
streambuf?
from oxy.
oxybuf?
from oxy.
retry? gather?
from oxy.
buffer/buffer.go - Buffer request into memory or disk
Reads the entire request and response into buffer, optionally buffering it to disk for large requests.
Checks the buffer.Mem
and buffer.Max
for the requests and responses, rejecting in case if the buffer size was exceeded.
Changes request content-transfer-encoding from chunked and provides total buffer size to the handlers.
Ex.
buffer up to 2MB in memory
buffer.MemRequestBodyBytes(2 * 1024 * 1024)
buffer sounds great! when I'm reading the code as buffer.
code shift for readability
- stream limits to buffer size
haven't read all the code yet, but I will PR the shift in code if sounds good in use
from oxy.
@archisgore renamed the package, maybe this could be closed?
from oxy.
I'm closing it. Please reopen if something is amiss.
from oxy.
Related Issues (20)
- adjust websocket loglevel for abnormal close HOT 2
- How to disable deadline of forward request? HOT 1
- Feature request: WAF
- How can I check the round robin configuration?
- Buffer: retry request time interval HOT 3
- Add SameSite configuration to CookieOptions
- Add spdy support HOT 1
- github.com/mailgun/ttlmap is deprecated HOT 10
- httpForwarder.serveWebSocket Uses global dialer HOT 1
- Replace logrus with minimal Logger interface HOT 3
- Bug on X-Forwarded-For header on websocket handshake HOT 1
- Data race in memmetrics/counter. Locking problem. HOT 1
- vulcand/oxy needs maintainers HOT 16
- codahale/hdrhistogram repo url has been transferred under the github HdrHstogram umbrella
- TestConsume fails on 32bit arch
- Middleware responds with 500 vulcand/oxy/buffer: error when reading request body, err: unexpected EOF when request is abruptly canceled
- Configure DefaultMaxRetryAttempts HOT 4
- Request for v2 Tag Release HOT 1
- Empty body with chunked encoding will return 500 Internal server error
- Feature request: cbreaker supports configuring a minimum number of requests HOT 1
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 oxy.