File tree Expand file tree Collapse file tree 3 files changed +5
-17
lines changed
rsocket-test/src/main/java/io/rsocket/test
rsocket-transport-netty/src/main/java/io/rsocket/transport/netty Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments