Skip to content

Commit

Permalink
Fix bug where setting validateSignonTimeOut causes the soTimeout to a…
Browse files Browse the repository at this point in the history
…lso 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 <[email protected]>
  • Loading branch information
pjyoung-ibm authored and jeber-ibm committed Oct 22, 2024
1 parent f72d48d commit acd07f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ibm/as400/access/AS400.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit acd07f4

Please sign in to comment.