You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Grizzly's FeedableBodyGenerator will write data as fast as it is provided, however, if the remote peer isn't consuming the data as fast as it is being written, the async write queue will fill and could lead to an OOM depending on the VM configuration.
The implementation should be leveraging Connection.canWrite() and Connection.notifyCanWrite(WriteListener).
After each chunk is written, the implementation should call Connection.canWrite() to see if the async write queue length has been exceeded. If it has, then we can block the caller until pressure on the queue has been relieved.