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 ServerBootstrap to bootstrap EpollServerSocketChannel (#15912) (#… · netty/netty@b5431a0

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
+5-4Lines changed: 5 additions & 4 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.ChannelInboundHandlerAdapter;
2021
import io.netty.channel.ChannelOption;
2122
import io.netty.channel.ConnectTimeoutException;
@@ -53,10 +54,10 @@ public static void afterClass() {
5354

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

@@ -74,10 +75,10 @@ public void testServerSocketChannelOption() throws Exception {
7475

7576
@Test
7677
public void testServerOption() throws Exception {
77-
Bootstrap bootstrap = new Bootstrap();
78+
ServerBootstrap bootstrap = new ServerBootstrap();
7879
EpollServerSocketChannel ch = (EpollServerSocketChannel) bootstrap.group(GROUP)
7980
.channel(EpollServerSocketChannel.class)
80-
.handler(new ChannelInboundHandlerAdapter())
81+
.childHandler(new ChannelInboundHandlerAdapter())
8182
.bind(new InetSocketAddress(0)).syncUninterruptibly().channel();
8283

8384
ch.config().setOption(EpollChannelOption.TCP_MD5SIG,

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.