Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ value.

### Outgoing Flow Control

The underlying layer (such as Netty) manages a buffer for outgoing messages. If you write messages faster than they can be sent over the network, this buffer will grow, which can eventually lead to an OutOfMemoryError. The outgoing onNext method invocation does not block when this happens. Therefore, you should explicitly check that the stream is ready for writing via `CallStreamObserver.isReady()` before calling onNext to avoid buffering excessive amounts of data in memory.
The underlying layer (such as Netty) manages a buffer for outgoing messages. If
you write messages faster than they can be sent over the network, this buffer
will grow, which can eventually lead to an OutOfMemoryError. The outgoing onNext
method invocation does not block when this happens. Therefore, you should
explicitly check that the stream is ready for writing via
`CallStreamObserver.isReady()` before generating messages to avoid buffering
excessive amounts of data in memory.

### Incoming Manual Flow Control

Expand Down
Loading