noports icon indicating copy to clipboard operation
noports copied to clipboard

Only execute srv as a process when using -x on the client

Open XavierChanth opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

We don't need an external process for socket connector, and the SDK should be able to choose which variant of srv connection is established

Describe the solution you'd like

CLI only uses an external process when running with -x

Describe alternatives you've considered

No response

Additional context

No response

XavierChanth avatar Jan 26 '24 19:01 XavierChanth

The downside of this is that if you kill sshnpd you kill the sessions too

cconstab avatar Feb 05 '24 14:02 cconstab

The counter might be that we have process rather than isolates on the srvd. So if we restart srvd we do mot drop sessions.

cconstab avatar Feb 05 '24 14:02 cconstab

The counter might be that we have process rather than isolates on the srvd. So if we restart srvd we do mot drop sessions.

This ticket is for client side. For daemon side, we have not crossed that bridge yet, but I was thinking about the possibility of forking the process to achieve a single binary while still keeping sessions alive through restarts.

XavierChanth avatar Feb 05 '24 16:02 XavierChanth