diff options
author | Eric Wong <e@80x24.org> | 2016-05-22 06:17:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-22 07:28:12 +0000 |
commit | 5fd049f32fde94f53f431ae3f37143440ee0cf09 (patch) | |
tree | 68abecc6dbce7c6c658f187c610180d7d0c7952a /lib | |
parent | 6b5e35ca6dc6a505d26f129627b5eb7ff8476539 (diff) | |
download | public-inbox-5fd049f32fde94f53f431ae3f37143440ee0cf09.tar.gz |
http: fix typo: write_buf => write_buf_size
Otherwise, we get deep recursion as we keep calling recursively on giant responses
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/HTTP.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index d523bd42..6576bf68 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -228,7 +228,7 @@ sub response_write { my $buf = $body->getline; if (defined $buf) { $write->($buf); - if ($self->{write_buf}) { + if ($self->{write_buf_size}) { $body->watch_read(0); $self->write($restart_read); } @@ -243,7 +243,7 @@ sub response_write { local $/ = \8192; while (defined(my $buf = $body->getline)) { $write->($buf); - if ($self->{write_buf}) { + if ($self->{write_buf_size}) { $self->write($pull); return; } |