about summary refs log tree commit homepage
path: root/lib/PublicInbox/HTTPD
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-03 10:34:08 +0000
committerEric Wong <e@80x24.org>2019-05-04 23:20:03 +0000
commitcd50d183273c105a7f08b1875ba6f7a51d9f8e9a (patch)
treede841ba448d2d3ed1d5e457fb5d015b6157e15d0 /lib/PublicInbox/HTTPD
parent48cd028855eb40557275a7e914da5cb3f847006c (diff)
downloadpublic-inbox-cd50d183273c105a7f08b1875ba6f7a51d9f8e9a.tar.gz
These modules are unmaintained upstream at the moment, but I'll
be able to help with the intended maintainer once/if CPAN
ownership is transferred.  OTOH, we've been waiting for that
transfer for several years, now...

Changes I intend to make:

* EPOLLEXCLUSIVE for Linux
* remove unused fields wasting memory
* kqueue bugfixes e.g. https://rt.cpan.org/Ticket/Display.html?id=116615
* accept4 support

And some lower priority experiments:

* switch to EV_ONESHOT / EPOLLONESHOT (incompatible changes)
* nginx-style buffering to tmpfile instead of string array
* sendfile off tmpfile buffers
* io_uring maybe?
Diffstat (limited to 'lib/PublicInbox/HTTPD')
-rw-r--r--lib/PublicInbox/HTTPD/Async.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/HTTPD/Async.pm b/lib/PublicInbox/HTTPD/Async.pm
index a647f10d..dbe8a84a 100644
--- a/lib/PublicInbox/HTTPD/Async.pm
+++ b/lib/PublicInbox/HTTPD/Async.pm
@@ -8,7 +8,7 @@
 package PublicInbox::HTTPD::Async;
 use strict;
 use warnings;
-use base qw(Danga::Socket);
+use base qw(PublicInbox::DS);
 use fields qw(cb cleanup);
 require PublicInbox::EvCleanup;
 
@@ -45,7 +45,7 @@ sub main_cb ($$$) {
                 my $r = sysread($self->{sock}, $$bref, 8192);
                 if ($r) {
                         $fh->write($$bref);
-                        unless ($http->{closed}) { # Danga::Socket sets this
+                        unless ($http->{closed}) { # PublicInbox::DS sets this
                                 if ($http->{write_buf_size}) {
                                         $self->watch_read(0);
                                         $http->write(restart_read_cb($self));