Browse Source

Compute delay properly, see comments attached to #263

Chris McDonough 10 years ago
parent
commit
4875a922f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      supervisor/http.py

+ 1 - 1
supervisor/http.py

@@ -357,9 +357,9 @@ class deferring_http_channel(http_server.http_channel):
         if self.delay:
             # we called a deferred producer via this channel (see refill_buffer)
             last_writable_check = self.writable_check
-            self.writable_check = now
             elapsed = now - last_writable_check
             if elapsed > self.delay:
+                self.writable_check = now
                 return True
             else:
                 return False