From: Eric Wong <e@80x24.org> To: meta@public-inbox.org Subject: [PATCH 00/10] lei: avoid wasting IMAP connections Date: Mon, 22 Feb 2021 08:21:55 -0300 Message-ID: <20210222112155.32231-1-e@80x24.org> (raw) This makes the code a bit less straightforward, unfortunately; but I've tried to comment it a bit and add some flow notes. The payoff is it saves IMAP connection setup costs which is noticeable in high-latency and/or metered bandwidth situations. LeiAuth is signficantly rewritten so it uses lei-daemon to route credentials from the first worker to other workers. Eric Wong (10): lei_auth: rename {nrd} field to {net} for clarity lei: keep client {sock} in short-lived workers lei: _lei_cfg: return empty hashref if unconfigured lei convert: auth directly from worker process lei import: no separate auth worker lei_auth: migrate common auth code from lei_import lei q: reduce wasted IMAP connection for auth net_reader: mic_get: reuse connections if cache enabled lei convert: inline convert_start lei_auth: trim and remove leftover worker code lib/PublicInbox/LEI.pm | 8 ++-- lib/PublicInbox/LeiAuth.pm | 76 +++++++++++++--------------------- lib/PublicInbox/LeiConvert.pm | 36 +++++++--------- lib/PublicInbox/LeiExternal.pm | 6 +-- lib/PublicInbox/LeiImport.pm | 60 ++++++++++++++++----------- lib/PublicInbox/LeiQuery.pm | 9 ++-- lib/PublicInbox/LeiToMail.pm | 53 ++++++++++++++++-------- lib/PublicInbox/LeiXSearch.pm | 26 ++++++++---- lib/PublicInbox/NetReader.pm | 20 +++++---- lib/PublicInbox/NetWriter.pm | 2 +- 10 files changed, 158 insertions(+), 138 deletions(-)
next reply other threads:[~2021-02-22 11:21 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-22 11:21 Eric Wong [this message] 2021-02-22 11:22 ` [PATCH 01/10] lei_auth: rename {nrd} field to {net} for clarity Eric Wong 2021-02-22 11:22 ` [PATCH 02/10] lei: keep client {sock} in short-lived workers Eric Wong 2021-02-22 11:22 ` [PATCH 03/10] lei: _lei_cfg: return empty hashref if unconfigured Eric Wong 2021-02-22 11:22 ` [PATCH 04/10] lei convert: auth directly from worker process Eric Wong 2021-02-22 11:22 ` [PATCH 05/10] lei import: no separate auth worker Eric Wong 2021-02-22 11:22 ` [PATCH 06/10] lei_auth: migrate common auth code from lei_import Eric Wong 2021-02-22 11:22 ` [PATCH 07/10] lei q: reduce wasted IMAP connection for auth Eric Wong 2021-02-22 11:22 ` [PATCH 08/10] net_reader: mic_get: reuse connections if cache enabled Eric Wong 2021-02-22 11:22 ` [PATCH 09/10] lei convert: inline convert_start Eric Wong 2021-02-22 11:22 ` [PATCH 10/10] lei_auth: trim and remove leftover worker code Eric Wong
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://public-inbox.org/README * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210222112155.32231-1-e@80x24.org \ --to=e@80x24.org \ --cc=meta@public-inbox.org \ --subject='Re: [PATCH 00/10] lei: avoid wasting IMAP connections' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
user/dev discussion of public-inbox itself This inbox may be cloned and mirrored by anyone: git clone --mirror https://public-inbox.org/meta git clone --mirror http://czquwvybam4bgbro.onion/meta git clone --mirror http://hjrcffqmbrq6wope.onion/meta git clone --mirror http://ou63pmih66umazou.onion/meta # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V1 meta meta/ https://public-inbox.org/meta \ meta@public-inbox.org public-inbox-index meta Example config snippet for mirrors. Newsgroups are available over NNTP: nntp://news.public-inbox.org/inbox.comp.mail.public-inbox.meta nntp://ou63pmih66umazou.onion/inbox.comp.mail.public-inbox.meta nntp://czquwvybam4bgbro.onion/inbox.comp.mail.public-inbox.meta nntp://hjrcffqmbrq6wope.onion/inbox.comp.mail.public-inbox.meta nntp://news.gmane.io/gmane.mail.public-inbox.general note: .onion URLs require Tor: https://www.torproject.org/ code repositories for project(s) associated with this inbox: https://80x24.org/public-inbox.git AGPL code for this site: git clone https://public-inbox.org/public-inbox.git