Skip to content

Commit f55552b

Browse files
committed
minor changes
1 parent 235106a commit f55552b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rsocket-transports/netty-quic/src/jvmMain/kotlin/io/rsocket/kotlin/transport/netty/quic/NettyQuicStream.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ internal class NettyQuicStream(
6060
}
6161
} finally {
6262
outbound.cancel()
63+
// we dont' use `shutdownOutput` here as it will not flush buffered messages!
6364
channel.writeAndFlush(QuicStreamFrame.EMPTY_FIN).awaitFuture()
6465
}
6566
}

rsocket-transports/netty-tcp/src/jvmMain/kotlin/io/rsocket/kotlin/transport/netty/tcp/NettyTcpConnection.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ internal class NettyTcpConnection(
5757
}
5858
} finally {
5959
outboundQueue.cancel()
60-
channel.shutdownOutput(channel.voidPromise())
60+
channel.shutdownOutput().awaitFuture()
6161
}
6262
}
6363
}
@@ -67,7 +67,7 @@ internal class NettyTcpConnection(
6767
nonCancellable {
6868
outboundQueue.close()
6969
inbound.cancel()
70-
channel.shutdownInput(channel.voidPromise())
70+
channel.shutdownInput().awaitFuture()
7171
outboundJob.join()
7272
channel.close().awaitFuture()
7373
}

0 commit comments

Comments
 (0)