Comments (5)
A lot of what you are describing is solved by -x, but I understand that -x limits you to one remote session per user/host pair.
The bigger problem is, how would the server tell the client that information? Mosh can show that information because they are in charge of the terminal (also the reason you lose your scrollbars). ET can't really display anything, but it could run commands when you connect.
from eternalterminal.
Yeah, should have mentioned that et -x
is mostly isomorphic to killall etterminal
. (Now I'm curious to look internally and see if it looks through the process table, or if there's already a whiteboard of running server terminals...)
I was thinking there'd be two channels. One is you'd have some little utility program / subcommand so you could run et ls
and it would list sessions on that server, and you could say et kill [session number]
. (Maybe that's a bad interface in case you have hostnames ls
and kill
, but you get the idea.)
The other is that the same data would get sent from server to client at handshake time, and the client would send back a thing saying to kill off any sessions that are definitively dead from that particular client, and all of this would happen before actually starting the connection proper, as a way to deal with the reboot situation automatically.
Finally, there could be a configurable timeout, and any session that hadn't had any contact with its client in that long would get killed off. I'm sure some people won't want any timeout, but I would totally take a day or so for my common use cases.
from eternalterminal.
The configurable timeout sounds pretty simple. The etterminal processes could fetch it from the cfg and kill themselves so no communication is even needed for that one. Happy to review PRs and answer questions.
from eternalterminal.
Yep, the timeout would be a good start. Any guidance where you'd go about adding that?
from eternalterminal.
Right here: https://github.com/MisterTea/EternalTerminal/blob/master/src/terminal/UserTerminalHandler.cpp#L71
You would read the cfg file for the timeout (look in the code for .cfg to see how to read the file), then keep the latest time of activity. If, in the while(true), you elapse the timeout without any new activity, break out of the loop and let the terminal process exit.
from eternalterminal.
Related Issues (20)
- Build failure with protobuf 23.3 HOT 2
- Dependency/Readme clean up HOT 1
- Reverse tunnel listen interface HOT 9
- 100% CPU Usage 😢 HOT 8
- Using a different ssh port HOT 1
- Building et on AL2 HOT 11
- "Error handling new client: Failed a call to readAll" HOT 4
- Starting multiple sessions for the same host in parallel leads to crash HOT 3
- Why does 6.2.8 install header and cmake files? HOT 6
- `--ssh-option=ControlPath=...` does not create any filesystem objects
- `et -t` does not accept IP address HOT 3
- APT-KEY is deprecated, update instructions for install HOT 3
- Segfault starting etserver on raspberry pi zero HOT 4
- package for pkgx HOT 1
- GCP IAP proxy HOT 3
- Ubuntu mantic et package (et_6.2.8-mantic1_amd64.deb) broken (bad dep on libtinfo5) HOT 9
- A way to prevent sourcing the shell's configs twice HOT 1
- et needs ssh's -t option to support running tmux with et HOT 2
- Overrided CTRL+C -> CTRL+B not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eternalterminal.