Commit Graph
3 Commits
Author SHA1 Message Date
Ev Kontsevoy ed8604f757 Semi-serious connection overhaul of Teleport SSH
- Added idle timeout handling to every SSH connection.
- A bit of code refactoring (removing unused code paths)

Most importantly:

Added a custom SSH handshake between SSH Teleport proxies
and SSH Teleport servers. This handshake sends a custom JSON payload
from a proxy to a server, allowing to exchange additional information,
like the true IP of a client.
2016-12-30 01:21:28 -08:00
Ev Kontsevoy 95aa7f1e1c Better timeout handling
ObeyTimeouts() facility was handling errors more arggessively than
needed.

So if you pass net.Conn implementation which does not support timeouts,
it would simply fail on every read() and write() instead of ignoring
them.

Now it ignores them.
2016-12-14 18:08:40 -08:00
Ev Kontsevoy aa680fc3c9 New TimeoutConn class
Allows to construct network connections with read/write timeouts.
+ tests
2016-10-23 16:42:15 -07:00