You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/02/15 15:34:18 UTC

[tomcat] branch 10.1.x updated: Configure all channels rather than just the first channel

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

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 04f2ca019d Configure all channels rather than just the first channel
04f2ca019d is described below

commit 04f2ca019d8016b36fefa109ccb8f5593c1e3f45
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Feb 15 15:33:55 2023 +0000

    Configure all channels rather than just the first channel
    
    Identified by Eclipse IDE warning after refactoring
---
 .../catalina/tribes/group/TestGroupChannelSenderConnections.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/org/apache/catalina/tribes/group/TestGroupChannelSenderConnections.java b/test/org/apache/catalina/tribes/group/TestGroupChannelSenderConnections.java
index f78644756f..9e4ce212b4 100644
--- a/test/org/apache/catalina/tribes/group/TestGroupChannelSenderConnections.java
+++ b/test/org/apache/catalina/tribes/group/TestGroupChannelSenderConnections.java
@@ -98,7 +98,7 @@ public class TestGroupChannelSenderConnections extends LoggingBaseTest {
     public void testKeepAliveCount() throws Exception {
         log.info("Setting keep alive count to 0");
         for (ManagedChannel channel : channels) {
-            ReplicationTransmitter t = (ReplicationTransmitter)channels[0].getChannelSender();
+            ReplicationTransmitter t = (ReplicationTransmitter)channel.getChannelSender();
             t.getTransport().setKeepAliveCount(0);
         }
         sendMessages(1000,15000);
@@ -108,7 +108,7 @@ public class TestGroupChannelSenderConnections extends LoggingBaseTest {
     public void testKeepAliveTime() throws Exception {
         log.info("Setting keep alive count to 1 second");
         for (ManagedChannel channel : channels) {
-            ReplicationTransmitter t = (ReplicationTransmitter)channels[0].getChannelSender();
+            ReplicationTransmitter t = (ReplicationTransmitter)channel.getChannelSender();
             t.getTransport().setKeepAliveTime(1000);
         }
         sendMessages(2000,15000);


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org