user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 06/12] nntpd: avoid lazy require
  2015-09-30 21:00  6% [PATCH 0/12] another round of NNTP updates Eric Wong
@ 2015-09-30 21:00  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2015-09-30 21:00 UTC (permalink / raw)
  To: meta

We cannot avoid requiring ::Config, so do not hide it.
---
 public-inbox-nntpd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public-inbox-nntpd b/public-inbox-nntpd
index 79161fb..82d6838 100644
--- a/public-inbox-nntpd
+++ b/public-inbox-nntpd
@@ -6,6 +6,7 @@ use warnings;
 require PublicInbox::Daemon;
 require PublicInbox::NewsGroup;
 require PublicInbox::NNTP;
+require PublicInbox::Config;
 my $nntpd = PublicInbox::NNTPD->new;
 daemon_run('0.0.0.0:119',
 	sub { $nntpd->refresh_groups },
@@ -28,7 +29,6 @@ sub new {
 
 sub refresh_groups () {
 	my ($self) = @_;
-	require PublicInbox::Config;
 	my $pi_config = PublicInbox::Config->new;
 	my $new = {};
 	my @list;
-- 
EW


^ permalink raw reply related	[relevance 7%]

* [PATCH 0/12] another round of NNTP updates
@ 2015-09-30 21:00  6% Eric Wong
  2015-09-30 21:00  7% ` [PATCH 06/12] nntpd: avoid lazy require Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2015-09-30 21:00 UTC (permalink / raw)
  To: meta

This is probably performant enough for practical use :)

Eric Wong (12):
      search: remove get_subject_path
      nntp: HDR returns 225, not 224
      nntp: reduce syscalls for LIST OVERVIEW.FMT
      remove unnecessary fields usage
      daemon: always autoflush stdout/stderr
      nntpd: avoid lazy require
      INSTALL: document Danga::Socket dependency for nntpd
      nntp: MODE READER denies posting
      nntp: implement LIST HEADERS
      nntp: implement OVER/XOVER summary in search document
      t/nntpd.t: simplify condition for response termination
      t/nntpd.t: additional tests for XHDR/HDR

 INSTALL                       |   2 +
 lib/PublicInbox/Daemon.pm     |   3 +
 lib/PublicInbox/GitCatFile.pm |   5 +-
 lib/PublicInbox/Hval.pm       |   9 +--
 lib/PublicInbox/Mbox.pm       |  11 ++-
 lib/PublicInbox/Msgmap.pm     |   4 +-
 lib/PublicInbox/NNTP.pm       | 175 ++++++++++++++++++++----------------------
 lib/PublicInbox/NewsGroup.pm  |  25 +++---
 lib/PublicInbox/Search.pm     |  43 ++++++++---
 lib/PublicInbox/SearchIdx.pm  |  59 ++++++++++----
 lib/PublicInbox/SearchMsg.pm  |  86 +++++++++++++--------
 lib/PublicInbox/SearchView.pm |  19 ++---
 public-inbox-nntpd            |  19 +++--
 t/nntpd.t                     |  46 ++++++++++-
 t/search.t                    |   2 +-
 15 files changed, 305 insertions(+), 203 deletions(-)


^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-09-30 21:00  6% [PATCH 0/12] another round of NNTP updates Eric Wong
2015-09-30 21:00  7% ` [PATCH 06/12] nntpd: avoid lazy require Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).