Skip to content

Commit b763c55

Browse files
committed
Change the default buffer size to 1000
1 parent 1a46f54 commit b763c55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/pages/kotlinx-rpc/topics/configuration.topic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<br/>
102102
Note that this is <b>per call</b>, not per connection.
103103
<br/>
104-
The default value is <code>1</code>.
104+
The default value is <code>1000</code>.
105105
</li>
106106
</list>
107107
<p>

krpc/krpc-core/src/commonMain/kotlin/kotlinx/rpc/krpc/KrpcConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public sealed class KrpcConfigBuilder protected constructor() {
7979
/**
8080
* A buffer size for a single call.
8181
*
82-
* The default value is 1,
82+
* The default value is 1000,
8383
* meaning that only after one message is handled - the next one will be sent.
8484
*
8585
* This buffer also applies to how many messages are cached with [waitTimeout]
8686
*/
87-
public var perCallBufferSize: Int = 1
87+
public var perCallBufferSize: Int = 1000
8888
}
8989

9090
@Deprecated("Use connector { } instead", level = DeprecationLevel.ERROR)

0 commit comments

Comments
 (0)