You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/07/17 07:14:11 UTC

(plc4x) branch develop updated: add timeout for gracefully shutdown of event group (#1701)

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7b6b908a3b add timeout for gracefully shutdown of event group (#1701)
7b6b908a3b is described below

commit 7b6b908a3bd02f3a6f81e09a5da70ed231b883ce
Author: BioComputerSience <bi...@posteo.de>
AuthorDate: Wed Jul 17 09:14:06 2024 +0200

    add timeout for gracefully shutdown of event group (#1701)
    
    Co-authored-by: Ines Eisenreich <in...@sql-ag.de>
---
 .../java/org/apache/plc4x/java/spi/connection/NettyChannelFactory.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/connection/NettyChannelFactory.java b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/connection/NettyChannelFactory.java
index 5652882eec..d2568b9e09 100644
--- a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/connection/NettyChannelFactory.java
+++ b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/connection/NettyChannelFactory.java
@@ -154,7 +154,7 @@ public abstract class NettyChannelFactory implements ChannelFactory {
             logger.info("Channel is closed, closing worker Group also");
             EventLoopGroup eventExecutors = eventLoops.get(channel);
             eventLoops.remove(channel);
-            eventExecutors.shutdownGracefully().awaitUninterruptibly();
+            eventExecutors.shutdownGracefully().awaitUninterruptibly(2000);
             logger.info("Worker Group was closed successfully!");
         } else {
             logger.warn("Trying to remove EventLoop for Channel {} but have none stored", channel);