Skip to content

Commit

Permalink
comments added
Browse files Browse the repository at this point in the history
Signed-off-by: David Kral <[email protected]>
  • Loading branch information
Verdent committed Feb 13, 2025
1 parent 716b5c3 commit db6dfe3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ boolean isClosed() {
}

private void handle() {
//We needed to change this simple method to more complex solution.
try {
//Currently configured socket read timeout. This is intended to be restored after this method finishes
int toRestore = socket.getSoTimeout();
int iterations = 1;
int iterations = 1; // Current iteration number
int currentTimeout = TIMEOUT;
boolean end = false;
while (!cancelled) {
Expand Down

0 comments on commit db6dfe3

Please sign in to comment.