Comments (9)
First tests were successful. Thank you.
from cumulocity-remote-access-local-proxy.
@toewsar do you happen to have an easy way to reproduce it? Iād say the fix will be relatively easy (as some kind of shutdown signal is probably missing), but just finding the right spot might be more difficult.
from cumulocity-remote-access-local-proxy.
@reubenmiller it should possible to reproduce, by restarting the remote-access app in the device while a connection is running.
- Start the proxy in server mode
host$ c8ylp server ABCD --env-file .env -c ssh --port 22222
- Open a ssh connection
host$ ssh admin@localhost -p 22222
- Disconnect the device from websocket (e.g. by pulling the cable)
- You shoud see in the c8ylp output
[c8ylp] INFO WebSocket Connection closed. Status: 1000 (NORMAL)
- The local
ssh
is still open, but shoudn't
from cumulocity-remote-access-local-proxy.
@reubenmiller I had this implemented in the previous version of c8ylp.
I think we can do something similar here:
We can use the proxy and call shutdown()? Anything that I'm missing?
from cumulocity-remote-access-local-proxy.
It's also a question of expected behavior in server mode. In last version I expected that it runs forever, so on each disconnect of WS it tries to reconnect instead of terminating the whole proxy instance.
from cumulocity-remote-access-local-proxy.
Every protocol that requires a specific handshake at the beginning and does not send keepalive frames won't work if the client doesn't get informed about the connection abort.
from cumulocity-remote-access-local-proxy.
For that reason we have to discuss what's the best scenario on web socket disconnect is:
- Disconnecting the TCP client and shutting down the whole c8ylp instance - tcp-server is shutdown
- Disconnecting the TCP client and keep the c8ylp alive - tcp-server is accepting new connections
I would prefer the 2. option but only in server mode, so we cannot just run "shutdown" (option 1) but have to implement a new function "disconnect" which disconnects the client but keeps the server alive.
from cumulocity-remote-access-local-proxy.
I would also prefer the 2. option.
from cumulocity-remote-access-local-proxy.
@toewsar This should be fixed now in v2.4.1. Please let use know if this is not the case.
from cumulocity-remote-access-local-proxy.
Related Issues (7)
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 cumulocity-remote-access-local-proxy.