Skip to content

Commit 020a92b

Browse files
author
OlegDokuka
committed
fixes
Signed-off-by: Oleh Dokuka <odokuka@vmware.com> Signed-off-by: Oleh Dokuka <oleh.dokuka@icloud.com> Signed-off-by: OlegDokuka <odokuka@vmware.com>
1 parent e1fab59 commit 020a92b

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

rsocket-test/src/main/java/io/rsocket/test/TransportTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static String read(String resourceName) {
8585

8686
@BeforeEach
8787
default void setup() {
88-
Hooks.onOperatorDebug();
88+
// Hooks.onOperatorDebug();
8989
}
9090

9191
@AfterEach
@@ -123,7 +123,7 @@ public String getMessage() {
123123
throw throwable;
124124
}
125125
} finally {
126-
Hooks.resetOnOperatorDebug();
126+
// Hooks.resetOnOperatorDebug();
127127
}
128128
}
129129

rsocket-transport-netty/src/main/java/io/rsocket/transport/netty/TcpDuplexConnection.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,8 @@ public final class TcpDuplexConnection extends BaseDuplexConnection {
4747
*/
4848
public TcpDuplexConnection(Connection connection) {
4949
this.connection = Objects.requireNonNull(connection, "connection must not be null");
50-
//
51-
// connection
52-
// .channel()
53-
// .closeFuture()
54-
// .addListener(
55-
// future -> {
56-
// if (!isDisposed()) dispose();
57-
// });
50+
51+
connection.channel().closeFuture().addListener(future -> sender.dispose());
5852

5953
connection.outbound().send(sender.log("queue " + this)).then().subscribe();
6054
}

rsocket-transport-netty/src/main/java/io/rsocket/transport/netty/WebsocketDuplexConnection.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,7 @@ public final class WebsocketDuplexConnection extends BaseDuplexConnection {
5252
public WebsocketDuplexConnection(Connection connection) {
5353
this.connection = Objects.requireNonNull(connection, "connection must not be null");
5454

55-
// connection
56-
// .channel()
57-
// .closeFuture()
58-
// .addListener(
59-
// future -> {
60-
// if (!isDisposed()) dispose();
61-
// });
55+
connection.channel().closeFuture().addListener(future -> sender.dispose());
6256

6357
connection
6458
.outbound()

0 commit comments

Comments
 (0)