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 <143426808+pjyoung-ibm@users.noreply.github.com>
  • Loading branch information
pjyoung-ibm committed Oct 22, 2024
1 parent f72d48d commit f383f7f
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 f383f7f

Please sign in to comment.