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 — Port: Use LocalIoHandler instead of DefaultEventLoop for LocalChannel… · netty/netty@add0311

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-http2/src/test/java/io/netty/handler/codec/http2
    • Http2MultiplexCodecBuilderTest.java
    • Http2MultiplexTransportTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexCodecBuilderTest.java‎

Copy file name to clipboardExpand all lines: codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexCodecBuilderTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class Http2MultiplexCodecBuilderTest {
6161

6262
@BeforeAll
6363
public static void init() {
64-
group = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
64+
group = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());
6565
}
6666

6767
@BeforeEach
Collapse file

‎codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTransportTest.java‎

Copy file name to clipboardExpand all lines: codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTransportTest.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ public void testServerCloseShouldNotSendResetIfClientSentEOS() throws Exception
771771
try {
772772
final CountDownLatch clientReceivedResponseLatch = new CountDownLatch(1);
773773
final CountDownLatch resetFrameLatch = new CountDownLatch(1);
774-
group = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
774+
group = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());
775775
LocalAddress serverAddress = new LocalAddress(getClass().getName());
776776
ServerBootstrap sb = new ServerBootstrap()
777777
.channel(LocalServerChannel.class)
@@ -890,8 +890,8 @@ public void proxyMirroringWritabilityToAutoReadAcrossEventLoopsDoesNotStallStrea
890890
Http2StreamChannel outStream = null;
891891
final AtomicReference<ByteBuf> receivedHolder = new AtomicReference<ByteBuf>();
892892
try {
893-
inGroup = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
894-
outGroup = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
893+
inGroup = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());
894+
outGroup = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());
895895

896896
LocalAddress inAddress = new LocalAddress(getClass().getName() + ".in");
897897
LocalAddress outAddress = new LocalAddress(getClass().getName() + ".out");
@@ -1086,8 +1086,8 @@ public void tortureCrossThreadSetAutoReadRace() throws Exception {
10861086
Thread hammer = null;
10871087
final AtomicReference<ByteBuf> receivedHolder = new AtomicReference<ByteBuf>();
10881088
try {
1089-
serverGroup = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
1090-
clientGroup = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
1089+
serverGroup = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());
1090+
clientGroup = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());
10911091
LocalAddress serverAddress = new LocalAddress(getClass().getName() + ".torture");
10921092

10931093
ServerBootstrap sb = new ServerBootstrap();

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.