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 9292 The default value is <code >Duration.INFINITE</code >.
9393 </li >
9494 <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 .
9797 This effectively provides a backpressure mechanism.
9898 If a peer is slow to process the message during a call,
9999 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() {
7979 /* *
8080 * A buffer size for a single call.
8181 *
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.
8483 *
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].
8685 */
8786 public var perCallBufferSize: Int = 1000
8887 }
You can’t perform that action at this time.
0 commit comments