Skip to content

Commit 28d23d9

Browse files
committed
fix(rsocket-core): Pass fragmentation config to server-side responder streams
#306
1 parent 18f6860 commit 28d23d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/rsocket-core/src/RSocketServer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export class RSocketServer {
6969
this.acceptor = config.acceptor;
7070
this.transport = config.transport;
7171
this.lease = config.lease;
72+
this.fragmentation = config.fragmentation;
7273
this.serverSideKeepAlive = config.serverSideKeepAlive;
7374
this.sessionStore = config.resume ? {} : undefined;
7475
this.sessionTimeout = config.resume?.sessionTimeout ?? undefined;
@@ -154,7 +155,7 @@ export class RSocketServer {
154155
);
155156
const streamsHandler = new DefaultStreamRequestHandler(
156157
responder,
157-
0
158+
this.fragmentation?.maxOutboundFragmentSize ?? 0,
158159
);
159160

160161
connection.onClose((e) => {

0 commit comments

Comments
 (0)