Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[gateway] Missing back-pressure handling #918
Streaming big contents should impact the memory consumption in a controlled way.
The flow of the request and response bodies is currently not controlled. If a backend or client is reading slowly, the internal buffering can lead to OutOfMemoryError.
Add back-pressure methods to the WriteStream (gateway-api) and implement them for the ProxyConnection and VerxtHttpResponse delegating to the underlying Vert.x back-pressure methods.
Steps to Reproduce (for bugs)
Setup a slowly consuming client/backend and GET/PUT a multi-GB file through it.
Have APIs supporting content delivery (typically as ZIP file) in a scalable way.