Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/pages/kotlinx-rpc/topics/configuration.topic
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
The default value is <code>Duration.INFINITE</code>.
</li>
<li>
<code>perCallBufferSize</code> - size of the buffer for one call.
Call can be a stream or a single message.
<code>perCallBufferSize</code> - size of the messages buffer for one call.
The buffer ignores the size in bytes and only counts the number of messages.
This effectively provides a backpressure mechanism.
If a peer is slow to process the message during a call,
the buffer will be filled up and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ public sealed class KrpcConfigBuilder protected constructor() {
/**
* A buffer size for a single call.
*
* The default value is 1000,
* meaning that only after one message is handled - the next one will be sent.
* The default value is 1000 messages independent of their size in bytes.
*
* This buffer also applies to how many messages are cached with [waitTimeout]
* This buffer also applies to how many messages are cached with [waitTimeout].
*/
public var perCallBufferSize: Int = 1000
}
Expand Down