Skip to content

Commit 5869d0e

Browse files
Update README.md
1 parent 6d5cd14 commit 5869d0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • examples/src/main/java/io/grpc/examples/manualflowcontrol

examples/src/main/java/io/grpc/examples/manualflowcontrol/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ value.
2525

2626
### Outgoing Flow Control
2727

28-
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.
28+
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.
2929

3030
### Incoming Manual Flow Control
3131

0 commit comments

Comments
 (0)