user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* RFC: lei-daemon and auto-up
@ 2021-09-14 20:42 Konstantin Ryabitsev
  2021-09-14 22:32 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Ryabitsev @ 2021-09-14 20:42 UTC (permalink / raw)
  To: meta

Hello:

Since lei-daemon is already up and running, would it be possible to tell it to
automatically "lei up" things at certain intervals?

Maybe something like:

    [lei]
      q = [...]
    [lei "q"]
      output = [...]
      include = https://lore.kernel.org/all/
      external = 1
      local = 1
      remote = 1
      refresh = 300

That would allow folks to automatically get updated info without needing to
set up cronjobs or systemd timers.

-K

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RFC: lei-daemon and auto-up
  2021-09-14 20:42 RFC: lei-daemon and auto-up Konstantin Ryabitsev
@ 2021-09-14 22:32 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2021-09-14 22:32 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: meta

Konstantin Ryabitsev <konstantin@linuxfoundation.org> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-14 22:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 20:42 RFC: lei-daemon and auto-up Konstantin Ryabitsev
2021-09-14 22:32 ` 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).