diff options
author | Eric Wong <e@80x24.org> | 2018-12-28 20:00:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-12-30 01:45:31 +0000 |
commit | 86ea6ed1417bfe731cadeced0f6c386cfc0e0894 (patch) | |
tree | d8d7d0fb4b19fd1563bc4bca57fe62e808f005f9 | |
parent | 434374199995022251f9adddc4c277ef9a952b71 (diff) | |
download | yahns-86ea6ed1417bfe731cadeced0f6c386cfc0e0894.tar.gz |
It seems there is still a bug in the proxy code which causes this timeout expiries to be missed.
-rw-r--r-- | lib/yahns/server.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb index 583fd38..128b894 100644 --- a/lib/yahns/server.rb +++ b/lib/yahns/server.rb @@ -500,6 +500,8 @@ class Yahns::Server # :nodoc: if drop_acceptors[0] || fdmap.size > 0 timeout = @shutdown_expire < Yahns.now ? -1 : @shutdown_timeout n = fdmap.desperate_expire(timeout) + return false if timeout == -1 + $0 = "yahns quitting, #{n} FD(s) remain" true else |