From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E41281F8C6; Tue, 14 Sep 2021 22:32:44 +0000 (UTC) Date: Tue, 14 Sep 2021 22:32:44 +0000 From: Eric Wong To: Konstantin Ryabitsev Cc: meta@public-inbox.org Subject: Re: RFC: lei-daemon and auto-up Message-ID: <20210914223244.GB4907@dcvr> References: <20210914204231.tl5pytm4qynyex2d@meerkat.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210914204231.tl5pytm4qynyex2d@meerkat.local> List-Id: Konstantin Ryabitsev wrote: > Hello: > > Since lei-daemon is already up and running, would it be possible to tell it to > automatically "lei up" things at certain intervals? Yes, something along those lines... It should at least fall back to refresh intervals if network connectivity is lost or HTTP servers w/o support for long-polling. The ideal thing would be to POST HTTP requests that do long-polling against -httpd and let curl wait on the response; similar to IMAP IDLE. -httpd will probably trickle zero-byte gzipped responses at a regular intervals to keep connections alive if there is no data, yet. There's still a lot of things I want to do w/ inotify and IDLE(-like) real-time notifications (including the new public-inbox-fetch command). I don't like polling as a first choice. Also. I'm not sure what ways exist to be notified on network up/down events on Linux or *BSDs w/o polling.