File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
docs/pages/kotlinx-rpc/topics
krpc/krpc-core/src/commonMain/kotlin/kotlinx/rpc/krpc Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 92
92
The default value is <code >Duration.INFINITE</code >.
93
93
</li >
94
94
<li >
95
- <code >perCallBufferSize</code > - size of the buffer for one call.
96
- Call can be a stream or a single message .
95
+ <code >perCallBufferSize</code > - size of the messages buffer for one call.
96
+ The buffer ignores the size in bytes and only counts the number of messages .
97
97
This effectively provides a backpressure mechanism.
98
98
If a peer is slow to process the message during a call,
99
99
the buffer will be filled up and
Original file line number Diff line number Diff line change @@ -79,10 +79,9 @@ public sealed class KrpcConfigBuilder protected constructor() {
79
79
/* *
80
80
* A buffer size for a single call.
81
81
*
82
- * The default value is 1000,
83
- * meaning that only after one message is handled - the next one will be sent.
82
+ * The default value is 1000 messages independent of their size in bytes.
84
83
*
85
- * This buffer also applies to how many messages are cached with [waitTimeout]
84
+ * This buffer also applies to how many messages are cached with [waitTimeout].
86
85
*/
87
86
public var perCallBufferSize: Int = 1000
88
87
}
You can’t perform that action at this time.
0 commit comments