Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: consrv-side buffering for interrupted connections #2

Closed
stapelberg opened this issue Jun 28, 2022 · 3 comments · Fixed by #5
Closed

feature request: consrv-side buffering for interrupted connections #2

stapelberg opened this issue Jun 28, 2022 · 3 comments · Fixed by #5

Comments

@stapelberg
Copy link
Contributor

Hey 👋

I started using consrv recently (blog post coming soonish) :)

I not only use serial console for interactive on-demand access, but also for continuous, always-on logging.

Because I started suspending my PC to RAM over night, I have gaps in my serial console logs.

I was wondering what you think about making consrv store serial logs (either in RAM, and/or on disk) while the client is disconnected? Once the client reconnects, consrv would stream what the client missed.

Thanks

@mdlayher
Copy link
Owner

Sounds cool! I'd be happy to accept a PR.

@stapelberg
Copy link
Contributor Author

Thinking more about it, the following approach seems simpler overall: instead of making consrv do all the buffering and replay, we could instead just launch a goroutine that reads from the mux device and prints to stdout. In combination with https://github.com/gokrazy/syslogd and https://gokrazy.org/userguide/remotesyslog/, the logs can either be sent to a central syslog server, or sent to localhost and persisted to RAM or any other available storage via syslogd.

@mdlayher
Copy link
Owner

Yep, seems reasonable to me.

stapelberg added a commit to stapelberg/consrv that referenced this issue Aug 14, 2022
This is handy with gokrazy’s remote syslog support:

https://gokrazy.org/userguide/remotesyslog/

…and the gokrazy syslog daemon:

https://github.com/gokrazy/syslogd

fixes mdlayher#2
stapelberg added a commit to stapelberg/consrv that referenced this issue Aug 14, 2022
This is handy with gokrazy’s remote syslog support:

https://gokrazy.org/userguide/remotesyslog/

…and the gokrazy syslog daemon:

https://github.com/gokrazy/syslogd

fixes mdlayher#2
stapelberg added a commit to stapelberg/consrv that referenced this issue Aug 20, 2022
This is handy with gokrazy’s remote syslog support:

https://gokrazy.org/userguide/remotesyslog/

…and the gokrazy syslog daemon:

https://github.com/gokrazy/syslogd

fixes mdlayher#2
mdlayher pushed a commit that referenced this issue Aug 22, 2022
This is handy with gokrazy’s remote syslog support:

https://gokrazy.org/userguide/remotesyslog/

…and the gokrazy syslog daemon:

https://github.com/gokrazy/syslogd

fixes #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants