From f383f7ff4690509076e7f4cbb737e8c504025c50 Mon Sep 17 00:00:00 2001 From: Parker Young <143426808+pjyoung-ibm@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:32:11 -0500 Subject: [PATCH] Fix bug where setting validateSignonTimeOut causes the soTimeout to also be set after calling AS400.validateSignon() This causes issues when threads are used for communication with the system, as soTimeout and threadsUsed are generally incompatible. Signed-off-by: Parker Young <143426808+pjyoung-ibm@users.noreply.github.com> --- src/main/java/com/ibm/as400/access/AS400.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ibm/as400/access/AS400.java b/src/main/java/com/ibm/as400/access/AS400.java index cfb17690..d47be65b 100644 --- a/src/main/java/com/ibm/as400/access/AS400.java +++ b/src/main/java/com/ibm/as400/access/AS400.java @@ -5673,7 +5673,7 @@ private boolean validateSignon(boolean useNewInstance, String userId, Credential // threadUsed_ is not needed. // locale_ in not needed. // nlv_ in not needed. - validationSystem.socketProperties_ = socketProperties_; + validationSystem.socketProperties_.copyValues(socketProperties_); if (validateSignonTimeOut_ > 0) validationSystem.socketProperties_.setSoTimeout(validateSignonTimeOut_); // ccsid_ is not needed.