Skip to content

Commit

Permalink
Compute delay properly, see comments attached to #263
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Aug 9, 2014
1 parent 50d1857 commit 1b351e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ def writable(self, t=time.time):
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
Expand Down

0 comments on commit 1b351e1

Please sign in to comment.