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 — fix: prevent DGC init failure if IpMulticastAll cannot be set (#16104… · netty/netty@cd0dc3d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • transport-classes-epoll/src/main/java/io/netty/channel/epoll
    • EpollDatagramChannel.java
  • transport-classes-io_uring/src/main/java/io/netty/channel/uring
    • IoUringDatagramChannel.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java‎

Copy file name to clipboardExpand all lines: transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import io.netty.buffer.ByteBufAllocator;
2020
import io.netty.buffer.Unpooled;
2121
import io.netty.channel.ChannelConfig;
22+
import io.netty.channel.ChannelException;
2223
import io.netty.channel.ChannelOption;
2324
import io.netty.channel.ChannelOutboundBuffer;
2425
import io.netty.channel.ChannelPipeline;
@@ -118,7 +119,7 @@ private EpollDatagramChannel(EventLoop eventLoop, LinuxSocket fd, boolean active
118119
// Configure IP_MULTICAST_ALL - disable by default to match the behaviour of NIO.
119120
try {
120121
fd.setIpMulticastAll(IP_MULTICAST_ALL);
121-
} catch (IOException e) {
122+
} catch (IOException | ChannelException e) {
122123
logger.debug("Failed to set IP_MULTICAST_ALL to {}", IP_MULTICAST_ALL, e);
123124
}
124125
}
Collapse file

‎transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDatagramChannel.java‎

Copy file name to clipboardExpand all lines: transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDatagramChannel.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import io.netty.buffer.ByteBuf;
1919
import io.netty.channel.ChannelConfig;
20+
import io.netty.channel.ChannelException;
2021
import io.netty.channel.ChannelOutboundBuffer;
2122
import io.netty.channel.ChannelPipeline;
2223
import io.netty.channel.ChannelShutdownType;
@@ -117,7 +118,7 @@ private IoUringDatagramChannel(EventLoop eventLoop, LinuxSocket fd, boolean acti
117118
// Configure IP_MULTICAST_ALL - disable by default to match the behaviour of NIO.
118119
try {
119120
fd.setIpMulticastAll(IP_MULTICAST_ALL);
120-
} catch (IOException e) {
121+
} catch (IOException | ChannelException e) {
121122
logger.debug("Failed to set IP_MULTICAST_ALL to {}", IP_MULTICAST_ALL, e);
122123
}
123124

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.