File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
reactor-netty-core/src/main/java/reactor/netty/transport Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -530,6 +530,9 @@ public final void dispose() {
530530 @ Override
531531 @ SuppressWarnings ("FutureReturnValueIgnored" )
532532 public void disposeNow (Duration timeout ) {
533+ if (log .isDebugEnabled ()) {
534+ log .debug (format (channel (), "Server is about to be disposed with timeout: {}" ), timeout );
535+ }
533536 if (isDisposed ()) {
534537 return ;
535538 }
@@ -554,12 +557,17 @@ public void disposeNow(Duration timeout) {
554557 Channel channel = entry .getKey ();
555558 List <Mono <Void >> monos = entry .getValue ();
556559 if (monos .isEmpty ()) {
557- //"FutureReturnValueIgnored" this is deliberate
560+ // At this point there are no running requests for this channel
561+ // "FutureReturnValueIgnored" this is deliberate
558562 channel .close ();
559563 }
560564 else {
561- //"FutureReturnValueIgnored" this is deliberate
562- terminateSignals = Mono .when (monos ).doFinally (sig -> channel .close ()).and (terminateSignals );
565+ terminateSignals =
566+ Mono .when (monos )
567+ // At this point there are no running requests for this channel
568+ // "FutureReturnValueIgnored" this is deliberate
569+ .doFinally (sig -> channel .close ())
570+ .and (terminateSignals );
563571 }
564572 }
565573 }
You can’t perform that action at this time.
0 commit comments