diff options
author | Eric Wong <e@80x24.org> | 2016-02-29 00:13:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-02-29 00:27:44 +0000 |
commit | f3bb7c21292cf91a203a1afd0833b84e3c1b1e20 (patch) | |
tree | e041c9cff66cf8181b939d1fcb78ae9d88dac651 /lib | |
parent | 9b12760f530967f7200d04c9d8b5c0b27d9e1283 (diff) | |
download | public-inbox-f3bb7c21292cf91a203a1afd0833b84e3c1b1e20.tar.gz |
It may not be obvious where we are when we enter the event_write callback. Hopefully this clarifies things.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/HTTP.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 4d771f2b..a472388d 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -201,10 +201,9 @@ sub event_write { # only continue watching for readability when we are done writing: return if $self->write(undef) != 1; - if ($self->{rbuf} eq '') { + if ($self->{rbuf} eq '') { # wait for next request $self->watch_read(1); - } else { - # avoid recursion for pipelined requests + } else { # avoid recursion for pipelined requests Danga::Socket->AddTimer(0, sub { rbuf_process($self) }); } } |