GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixes after rebasee · netty/netty@737813b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • transport/src/main/java/io/netty/channel
    • AbstractChannelHandlerContext.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎transport/src/main/java/io/netty/channel/AbstractChannelHandlerContext.java‎

Copy file name to clipboardExpand all lines: transport/src/main/java/io/netty/channel/AbstractChannelHandlerContext.java
+2-23Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
package io.netty.channel;
1717

1818
import io.netty.buffer.ByteBufAllocator;
19-
import io.netty.util.Attribute;
20-
import io.netty.util.AttributeKey;
2119
import io.netty.util.Recycler;
2220
import io.netty.util.ReferenceCountUtil;
2321
import io.netty.util.ResourceLeakHint;
@@ -352,14 +350,7 @@ public ChannelHandlerContext fireChannelShutdown(ChannelShutdownType type) {
352350
// Duplex handlers implements both out/in interfaces causing a scalability issue
353351
// see https://bugs.openjdk.org/browse/JDK-8180450
354352
final ChannelHandler handler = next.handler();
355-
final DefaultChannelPipeline.HeadContext headContext = pipeline.head;
356-
if (handler == headContext) {
357-
headContext.channelShutdown(next, type);
358-
} else if (handler instanceof ChannelDuplexHandler) {
359-
((ChannelDuplexHandler) handler).channelShutdown(next, type);
360-
} else {
361-
((ChannelInboundHandler) handler).channelShutdown(next, type);
362-
}
353+
((ChannelInboundHandler) handler).channelShutdown(next, type);
363354
} catch (Throwable t) {
364355
next.invokeExceptionCaught(t);
365356
}
@@ -657,20 +648,8 @@ public void run() {
657648
private void invokeShutdown(ChannelShutdownType type, ChannelPromise promise) {
658649
if (invokeHandler()) {
659650
try {
660-
// DON'T CHANGE
661-
// Duplex handlers implements both out/in interfaces causing a scalability issue
662-
// see https://bugs.openjdk.org/browse/JDK-8180450
663651
final ChannelHandler handler = handler();
664-
final DefaultChannelPipeline.HeadContext headContext = pipeline.head;
665-
if (handler == headContext) {
666-
headContext.shutdown(this, type, promise);
667-
} else if (handler instanceof ChannelDuplexHandler) {
668-
((ChannelDuplexHandler) handler).shutdown(this, type, promise);
669-
} else if (handler instanceof ChannelOutboundHandlerAdapter) {
670-
((ChannelOutboundHandlerAdapter) handler).shutdown(this, type, promise);
671-
} else {
672-
((ChannelOutboundHandler) handler).shutdown(this, type, promise);
673-
}
652+
((ChannelOutboundHandler) handler).shutdown(this, type, promise);
674653
} catch (Throwable t) {
675654
notifyOutboundHandlerException(t, promise);
676655
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.