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 2020/01/30 14:17:55 UTC

[plc4x] 03/03: - Made the PoolKeyFactory compatible with the new S7 driver.

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

commit 4010073b72f26e860e77f76c435f54501a1d896e
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Jan 30 15:17:44 2020 +0100

    - Made the PoolKeyFactory compatible with the new S7 driver.
---
 .../java/org/apache/plc4x/java/utils/connectionpool/PoolKeyFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4j/tools/connection-pool/src/main/java/org/apache/plc4x/java/utils/connectionpool/PoolKeyFactory.java b/plc4j/tools/connection-pool/src/main/java/org/apache/plc4x/java/utils/connectionpool/PoolKeyFactory.java
index f72bdce..1cb6c97 100644
--- a/plc4j/tools/connection-pool/src/main/java/org/apache/plc4x/java/utils/connectionpool/PoolKeyFactory.java
+++ b/plc4j/tools/connection-pool/src/main/java/org/apache/plc4x/java/utils/connectionpool/PoolKeyFactory.java
@@ -43,7 +43,7 @@ public class PoolKeyFactory {
         switch (protocol) {
             case "s7":
                 return new PoolKey(url, plcAuthentication) {
-                    private final Pattern s7URIPattern = Pattern.compile("^(?<poolablePart>s7://(?<host>.*)/(?<rack>\\d{1,4})/(?<slot>\\d{1,4}))(?<params>\\?.*)?");
+                    private final Pattern s7URIPattern = Pattern.compile("^(?<poolablePart>s7://(?<host>.*))(?<params>\\?.*)?");
 
                     @Override
                     public String getPoolableKey() {