diff options
author | Eric Wong <e@80x24.org> | 2019-06-24 02:52:09 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-24 05:26:25 +0000 |
commit | 0e1c3fe09a06faf24f7bca159020f69730f1275a (patch) | |
tree | 40bb7f5b2317abf9d36f52db5f3aaf31efbabeba /lib/PublicInbox/HTTPD | |
parent | fdf67396c179a64154eaa6c10ac255d61ed39c01 (diff) | |
download | public-inbox-0e1c3fe09a06faf24f7bca159020f69730f1275a.tar.gz |
We don't need write buffering unless we encounter slow clients requesting large responses. So don't waste a hash slot or (empty) arrayref for it.
Diffstat (limited to 'lib/PublicInbox/HTTPD')
-rw-r--r-- | lib/PublicInbox/HTTPD/Async.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/HTTPD/Async.pm b/lib/PublicInbox/HTTPD/Async.pm index 261a01e0..46ea188c 100644 --- a/lib/PublicInbox/HTTPD/Async.pm +++ b/lib/PublicInbox/HTTPD/Async.pm @@ -46,7 +46,7 @@ sub main_cb ($$$) { if ($r) { $fh->write($$bref); if ($http->{sock}) { # !closed - if (scalar @{$http->{wbuf}}) { + if ($http->{wbuf}) { $self->watch_read(0); $http->write(restart_read_cb($self)); } |