]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NNTP.pm
bundle Danga::Socket and Sys::Syscall
[public-inbox.git] / lib / PublicInbox / NNTP.pm
index 63d5870b045756463b8d78f7b16c4689481a15be..f756e92c64b39793c682dce067c9af4473d782c3 100644 (file)
@@ -5,7 +5,7 @@
 package PublicInbox::NNTP;
 use strict;
 use warnings;
-use base qw(Danga::Socket);
+use base qw(PublicInbox::DS);
 use fields qw(nntpd article rbuf ng long_res);
 use PublicInbox::Search;
 use PublicInbox::Msgmap;
@@ -23,7 +23,6 @@ use constant {
        r224 => '224 Overview information follows (multi-line)',
        r225 => '225 Headers follow (multi-line)',
        r430 => '430 No article with that message-id',
-       long_response_limit => 0xffffffff,
 };
 
 sub now () { clock_gettime(CLOCK_MONOTONIC) };
@@ -937,7 +936,7 @@ sub do_more ($$) {
        do_write($self, $data);
 }
 
-# callbacks for Danga::Socket
+# callbacks for PublicInbox::DS
 
 sub event_hup { $_[0]->close }
 sub event_err { $_[0]->close }
@@ -990,7 +989,7 @@ sub check_read {
        } else {
                # no pipelined requests available, let the kernel know
                # to wake us up if there's more
-               $self->watch_read(1); # Danga::Socket::watch_read
+               $self->watch_read(1); # PublicInbox::DS::watch_read
        }
 }