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 — Use correct bootstrap · netty/netty@78dbdc7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • transport-native-epoll/src/test/java/io/netty/channel/epoll
    • EpollSocketTcpMd5Test.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTcpMd5Test.java‎

Copy file name to clipboardExpand all lines: transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTcpMd5Test.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package io.netty.channel.epoll;
1717

1818
import io.netty.bootstrap.Bootstrap;
19+
import io.netty.bootstrap.ServerBootstrap;
1920
import io.netty.channel.ChannelException;
2021
import io.netty.channel.ChannelInboundHandlerAdapter;
2122
import io.netty.channel.ChannelOption;
@@ -56,10 +57,10 @@ public static void afterClass() {
5657

5758
@BeforeEach
5859
public void setup() {
59-
Bootstrap bootstrap = new Bootstrap();
60+
ServerBootstrap bootstrap = new ServerBootstrap();
6061
server = (EpollServerSocketChannel) bootstrap.group(GROUP)
6162
.channel(EpollServerSocketChannel.class)
62-
.handler(new ChannelInboundHandlerAdapter())
63+
.childHandler(new ChannelInboundHandlerAdapter())
6364
.bind(new InetSocketAddress(NetUtil.LOCALHOST4, 0)).syncUninterruptibly().channel();
6465
}
6566

@@ -90,7 +91,7 @@ private static void handleException(ChannelException ce) {
9091

9192
@Test
9293
public void testServerOption() throws Exception {
93-
Bootstrap bootstrap = new Bootstrap();
94+
ServerBootstrap bootstrap = new ServerBootstrap();
9495
EpollServerSocketChannel ch = (EpollServerSocketChannel) bootstrap.group(GROUP)
9596
.channel(EpollServerSocketChannel.class)
9697
.handler(new ChannelInboundHandlerAdapter())

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.