Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
RadKesvat committed Dec 22, 2023
1 parent c38c99c commit 811e554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/foreign_server.nim
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ proc processConnection(client: Connection) {.async.} =
if globals.log_data_len: echo &"[processRemote] Sent {data.len()} bytes -> client"

if client.isClosing:
await client.twriter.finish()
# await client.twriter.finish()
client = await acquireClientConnection(true)
if client == nil:
if globals.log_conn_error: echo "[Error] [processRemote] [loop]: ", "no client for tcp !"
Expand Down Expand Up @@ -327,7 +327,7 @@ proc poolController() {.async.} =

await conn.twriter.write(generateFinishHandShakeData(upload))

await sleepAsync(200)
await sleepAsync(3500)
if upload:
block initialWriteToOpenBandWidth:
var len = 3000+rand(globals.random_str.len() - 3000)
Expand Down
4 changes: 2 additions & 2 deletions src/iran_server.nim
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ proc start*(){.async.} =
await context.listener_udp.join()
echo "Udp server ended."

trackOldConnections(context.up_bounds, globals.connection_age + 2*globals.connection_rewind+9999)
trackOldConnections(context.dw_bounds, globals.connection_age + 2*globals.connection_rewind+9999)
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 811e554

Please sign in to comment.