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 smaller number of boss threads in the example · netty/netty@87b853c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • example/src/main/java/io/netty/example
    • applet
      • AppletDiscardServer.java
    • discard
      • DiscardServer.java
    • echo
      • EchoServer.java
    • factorial
      • FactorialServer.java
    • filetransfer
      • FileServer.java
    • http
      • cors
        • HttpServer.java
      • file
        • HttpStaticFileServer.java
      • helloworld
        • HttpHelloWorldServer.java
      • snoop
        • HttpSnoopServer.java
      • upload
        • HttpUploadServer.java
      • websocketx
        • html5
          • WebSocketServer.java
        • server
          • WebSocketServer.java
        • sslserver
          • WebSocketSslServer.java
    • objectecho
      • ObjectEchoServer.java
    • portunification
      • PortUnificationServer.java
    • proxy
      • HexDumpProxy.java
    • sctp
      • NioSctpEchoServer.java
      • OioSctpEchoServer.java
    • securechat
      • SecureChatServer.java
    • socksproxy
      • SocksServer.java
    • spdy/server
      • SpdyServer.java
    • telnet
      • TelnetServer.java
    • worldclock
      • WorldClockServer.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎example/src/main/java/io/netty/example/applet/AppletDiscardServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/applet/AppletDiscardServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class AppletDiscardServer extends JApplet {
4141

4242
@Override
4343
public void init() {
44-
bossGroup = new NioEventLoopGroup();
44+
bossGroup = new NioEventLoopGroup(1);
4545
workerGroup = new NioEventLoopGroup();
4646
try {
4747
ServerBootstrap bootstrap = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/discard/DiscardServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/discard/DiscardServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public DiscardServer(int port) {
3535
}
3636

3737
public void run() throws Exception {
38-
EventLoopGroup bossGroup = new NioEventLoopGroup();
38+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
3939
EventLoopGroup workerGroup = new NioEventLoopGroup();
4040
try {
4141
ServerBootstrap b = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/echo/EchoServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/echo/EchoServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public EchoServer(int port) {
3939

4040
public void run() throws Exception {
4141
// Configure the server.
42-
EventLoopGroup bossGroup = new NioEventLoopGroup();
42+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
4343
EventLoopGroup workerGroup = new NioEventLoopGroup();
4444
try {
4545
ServerBootstrap b = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/factorial/FactorialServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/factorial/FactorialServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public FactorialServer(int port) {
3333
}
3434

3535
public void run() throws Exception {
36-
EventLoopGroup bossGroup = new NioEventLoopGroup();
36+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
3737
EventLoopGroup workerGroup = new NioEventLoopGroup();
3838
try {
3939
ServerBootstrap b = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/filetransfer/FileServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/filetransfer/FileServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public FileServer(int port) {
5050

5151
public void run() throws Exception {
5252
// Configure the server.
53-
EventLoopGroup bossGroup = new NioEventLoopGroup();
53+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
5454
EventLoopGroup workerGroup = new NioEventLoopGroup();
5555
try {
5656
ServerBootstrap b = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/http/cors/HttpServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/http/cors/HttpServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public HttpServer(int port) {
7575
}
7676

7777
public void run() throws Exception {
78-
EventLoopGroup bossGroup = new NioEventLoopGroup();
78+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
7979
EventLoopGroup workerGroup = new NioEventLoopGroup();
8080
try {
8181
ServerBootstrap b = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/http/file/HttpStaticFileServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/http/file/HttpStaticFileServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public HttpStaticFileServer(int port) {
2929
}
3030

3131
public void run() throws Exception {
32-
EventLoopGroup bossGroup = new NioEventLoopGroup();
32+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
3333
EventLoopGroup workerGroup = new NioEventLoopGroup();
3434
try {
3535
ServerBootstrap b = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public HttpHelloWorldServer(int port) {
3636

3737
public void run() throws Exception {
3838
// Configure the server.
39-
EventLoopGroup bossGroup = new NioEventLoopGroup();
39+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
4040
EventLoopGroup workerGroup = new NioEventLoopGroup();
4141
try {
4242
ServerBootstrap b = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/http/snoop/HttpSnoopServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/http/snoop/HttpSnoopServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public HttpSnoopServer(int port) {
3535

3636
public void run() throws Exception {
3737
// Configure the server.
38-
EventLoopGroup bossGroup = new NioEventLoopGroup();
38+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
3939
EventLoopGroup workerGroup = new NioEventLoopGroup();
4040
try {
4141
ServerBootstrap b = new ServerBootstrap();
Collapse file

‎example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java‎

Copy file name to clipboardExpand all lines: example/src/main/java/io/netty/example/http/upload/HttpUploadServer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public HttpUploadServer(int port) {
3434
}
3535

3636
public void run() throws Exception {
37-
EventLoopGroup bossGroup = new NioEventLoopGroup();
37+
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
3838
EventLoopGroup workerGroup = new NioEventLoopGroup();
3939
try {
4040
ServerBootstrap b = 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.