From cd50d183273c105a7f08b1875ba6f7a51d9f8e9a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 3 May 2019 10:34:08 +0000 Subject: bundle Danga::Socket and Sys::Syscall 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? --- t/git-http-backend.t | 2 +- t/httpd-corner.t | 2 +- t/httpd-unix.t | 2 +- t/httpd.t | 2 +- t/nntp.t | 2 +- t/nntpd.t | 2 +- t/v2mirror.t | 2 +- t/v2writable.t | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) (limited to 't') diff --git a/t/git-http-backend.t b/t/git-http-backend.t index 4e51f2bf..b616e822 100644 --- a/t/git-http-backend.t +++ b/t/git-http-backend.t @@ -11,7 +11,7 @@ use Cwd qw(getcwd); my $git_dir = $ENV{GIANT_GIT_DIR}; plan 'skip_all' => 'GIANT_GIT_DIR not defined' unless $git_dir; -foreach my $mod (qw(Danga::Socket BSD::Resource +foreach my $mod (qw(PublicInbox::DS BSD::Resource Plack::Util Plack::Builder HTTP::Date HTTP::Status Net::HTTP)) { eval "require $mod"; diff --git a/t/httpd-corner.t b/t/httpd-corner.t index aa0698d3..49c5d1fe 100644 --- a/t/httpd-corner.t +++ b/t/httpd-corner.t @@ -7,7 +7,7 @@ use warnings; use Test::More; use Time::HiRes qw(gettimeofday tv_interval); -foreach my $mod (qw(Plack::Util Plack::Builder Danga::Socket +foreach my $mod (qw(Plack::Util Plack::Builder PublicInbox::DS HTTP::Date HTTP::Status IPC::Run)) { eval "require $mod"; plan skip_all => "$mod missing for httpd-corner.t" if $@; diff --git a/t/httpd-unix.t b/t/httpd-unix.t index 0a93f204..627adfaf 100644 --- a/t/httpd-unix.t +++ b/t/httpd-unix.t @@ -5,7 +5,7 @@ use strict; use warnings; use Test::More; -foreach my $mod (qw(Plack::Util Plack::Builder Danga::Socket +foreach my $mod (qw(Plack::Util Plack::Builder PublicInbox::DS HTTP::Date HTTP::Status)) { eval "require $mod"; plan skip_all => "$mod missing for httpd-unix.t" if $@; diff --git a/t/httpd.t b/t/httpd.t index 44df1642..45cbcbfd 100644 --- a/t/httpd.t +++ b/t/httpd.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More; -foreach my $mod (qw(Plack::Util Plack::Builder Danga::Socket +foreach my $mod (qw(Plack::Util Plack::Builder PublicInbox::DS HTTP::Date HTTP::Status)) { eval "require $mod"; plan skip_all => "$mod missing for httpd.t" if $@; diff --git a/t/nntp.t b/t/nntp.t index 6df7db89..c39a05fa 100644 --- a/t/nntp.t +++ b/t/nntp.t @@ -5,7 +5,7 @@ use warnings; use Test::More; use Data::Dumper; -foreach my $mod (qw(DBD::SQLite Search::Xapian Danga::Socket)) { +foreach my $mod (qw(DBD::SQLite Search::Xapian PublicInbox::DS)) { eval "require $mod"; plan skip_all => "$mod missing for nntp.t" if $@; } diff --git a/t/nntpd.t b/t/nntpd.t index 6b13f81e..ecfd74f7 100644 --- a/t/nntpd.t +++ b/t/nntpd.t @@ -3,7 +3,7 @@ use strict; use warnings; use Test::More; -foreach my $mod (qw(DBD::SQLite Search::Xapian Danga::Socket)) { +foreach my $mod (qw(DBD::SQLite Search::Xapian PublicInbox::DS)) { eval "require $mod"; plan skip_all => "$mod missing for nntpd.t" if $@; } diff --git a/t/v2mirror.t b/t/v2mirror.t index ef9a5405..eaf9e61d 100644 --- a/t/v2mirror.t +++ b/t/v2mirror.t @@ -7,7 +7,7 @@ require './t/common.perl'; require_git(2.6); # Integration tests for HTTP cloning + mirroring -foreach my $mod (qw(Plack::Util Plack::Builder Danga::Socket +foreach my $mod (qw(Plack::Util Plack::Builder PublicInbox::DS HTTP::Date HTTP::Status Search::Xapian DBD::SQLite IPC::Run)) { eval "require $mod"; diff --git a/t/v2writable.t b/t/v2writable.t index f1714175..06b22519 100644 --- a/t/v2writable.t +++ b/t/v2writable.t @@ -134,8 +134,8 @@ SKIP: { use Net::NNTP; use IO::Socket; use Socket qw(SO_KEEPALIVE IPPROTO_TCP TCP_NODELAY); - eval { require Danga::Socket }; - skip "Danga::Socket missing $@", 2 if $@; + eval { require PublicInbox::DS }; + skip "PublicInbox::DS missing $@", 2 if $@; my $err = "$mainrepo/stderr.log"; my $out = "$mainrepo/stdout.log"; my %opts = ( -- cgit v1.2.3-24-ge0c7