Skip to content

Commit

Permalink
Close UDP channel whenever QUIC connection is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed May 4, 2024
1 parent b8ada35 commit ff23efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.nethergames.proxytransport</groupId>
<artifactId>proxy-transport</artifactId>
<version>2.0.4-SNAPSHOT</version>
<version>2.0.6-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public void channelActive(ChannelHandlerContext ctx) throws Exception {
QuicChannel quicChannel = quicChannelFuture.getNow();
quicChannel.closeFuture().addListener(f -> {
logger.debug("Connection to " + address + " for " + this.getServerName() + " server closed");
channelFuture.channel().close();
this.serverConnections.remove(address);
});

Expand Down

0 comments on commit ff23efd

Please sign in to comment.