Skip to content

Commit f36874b

Browse files
author
clowwindy
committed
fix UDP timeout
1 parent 2a14c11 commit f36874b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/shadowsocks/udprelay.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/udprelay.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class LRUCache
7474
for k in keys
7575
v = dict[k]
7676
diff = process.hrtime(v[1])
77-
if diff[0] > @timeout
77+
if diff[0] > @timeout * 0.001
7878
swept += 1
7979
v0 = v[0]
8080
v0.close()

0 commit comments

Comments
 (0)