Commit Graph

8 Commits

Author SHA1 Message Date
e01a2bc729 Added pprof to convergeserver and optionally to
the agent if PPROF_PORT is set.

Fixed issue with converge server not cleaning up goroutines because of blocking channel. Made sure to create channels with > 1 size everywhere it can be done. The blocking behavior of a default channel size is mostly in the way.

Known issue: Killing the SSH client will lead to the server side process not being terminated and some goroutines still running in the agent. This would require additional investigation to solve. The remote processes are still being cleaned up ok (at least on linux) when the agent exits.

This should not be an issue at all since the agent is a short-lived process and when running in a containerized environment with containers running on demand the cleanup will definitely work.
2024-09-08 11:16:49 +02:00
Erik Brakkee
8c44943a48 * fixes for windows
* detect kill ssh session
* include sftp session in the count of ssh sessions
* log session type in the agent
2024-09-08 11:16:48 +02:00
55c93ad4e2 Windows terminal support using the termtest library.
Should even support resizing. Fully untested.
2024-09-08 11:16:48 +02:00
1d2a047dfc lots of restructuring.
Experimensts with websockets over yamux failed. Now going to use a
second connection to the server from the agent.
2024-09-08 11:16:48 +02:00
41403476c6 working server
* administration appears coorect
* multiple clients for one agent
* logging of active connections
* simple echo server on the agent.
2024-09-08 11:16:48 +02:00
feb4639c7d dynamic publicId now working with single connection to agent. Cleanup is not working yet. 2024-09-08 11:16:48 +02:00
58ee5d7e85 further generalizatio of synchronizing two streams of data. 2024-09-08 11:16:48 +02:00
6b9dc2bfbe moved websocket wrapper to iowrappers package. 2024-09-08 11:16:48 +02:00