Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ class MessagingRSocket implements RSocket {
* @return completion handle for success or error
*/
public Mono<Void> handleConnectionSetupPayload(ConnectionSetupPayload payload) {
// frameDecoder does not apply to connectionSetupPayload
// so retain here since handle expects it.
payload.retain();
return handle(payload, FrameType.SETUP);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ public SocketAcceptor responder() {
responder = createResponder(setupPayload, sendingRSocket);
}
catch (Throwable ex) {
setupPayload.release();
return Mono.error(ex);
}
return responder.handleConnectionSetupPayload(setupPayload).then(Mono.just(responder));
Expand Down