Skip to content

Commit

Permalink
Adjust js connect timeout duration for windows (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm committed Jun 11, 2024
1 parent c5b9788 commit d966694
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,13 @@ public actual interface TorCtrl : Destroyable, TorEvent.Processor, TorCmd.Privil
}

try {
val durationTimeout = (42 * 3).milliseconds
val durationDelay = 5.milliseconds
val durationDelay = 10.milliseconds
val durationTimeout = if (SysDirSep == '\\') {
// Windows may need a little more time...
500.milliseconds
} else {
250.milliseconds
}

val mark = TimeSource.Monotonic.markNow()

Expand Down

0 comments on commit d966694

Please sign in to comment.