Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
RadKesvat committed Dec 17, 2023
1 parent 80adfd5 commit 733b652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/foreign_server.nim
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ proc poolController() {.async.} =

while true:
await reCreate()
var secs_left = (globals.connection_age ).int
var secs_left = (globals.connection_age).int
while true:
await sleepAsync 1.seconds; dec secs_left
if await watch():
Expand Down
4 changes: 2 additions & 2 deletions src/iran_server.nim
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,8 @@ proc start*(){.async.} =
await context.listener_udp.join()
echo "Udp server ended."

trackOldConnections(context.up_bounds, globals.connection_age + globals.connection_rewind)
trackOldConnections(context.dw_bounds, globals.connection_age + globals.connection_rewind)
trackOldConnections(context.up_bounds, globals.connection_age + 2*globals.connection_rewind)
trackOldConnections(context.dw_bounds, globals.connection_age + 2*globals.connection_rewind)


trackDeadConnections(context.user_inbounds, globals.max_idle_timeout.uint, true, globals.max_idle_timeout div 2)
Expand Down

0 comments on commit 733b652

Please sign in to comment.