aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection_manager.erl
AgeCommit message (Collapse)Author
2013-11-13ssh: Merge connection_manager and connection_handler processesIngela Anderton Andin
Also start adding dialyzer specs and removing dead code
2013-11-13ssh: Remove use of process dictionaryIngela Anderton Andin
This is step one in in making ssh process structure less complicated. As an effect I also found other simplifications/clean ups of the code that could be done.
2013-03-14Removed timing rekeyingFredrik Gustafsson
2013-02-22Update copyright yearsBjörn-Egil Dahlberg
2013-02-15Added event/3 and clarified error messageFredrik Gustafsson
2013-02-15Returning the actual reason why key exchange failedFredrik Gustafsson
2012-11-23Renegotiating every hour and every gb sent, can be decreased with option ↵Fredrik Gustafsson
{rekey_limit, integer()}
2012-11-16Merge branch 'fredrik/ssh/timer-on-connect/OTP-10514'Fredrik Gustafsson
* fredrik/ssh/timer-on-connect/OTP-10514: New setup in testing idle_time Use same connect as the rest of testcases Fixed doc Added testcase for idle timer Not start the idle timer on connect Doc about idle_time option to ssh:connect Check cache on channel exec handle no idle-timer on check cache Option idle_time introduced, it will trigger the timer and if it is not given the timer_ref entry is infinity Timeout after 1h of idle on connection, which exits the connection Conflicts: lib/ssh/src/ssh.erl
2012-11-12Merge branch 'maint'Fredrik Gustafsson
* maint: Ssh appup modifications Updated appup for ssh Bumped revision Removed some testing variables ssh_opts is now a proper list After auth rsa and dsa passwords is set to undefined Removing the password after auth
2012-11-05Removed some testing variablesFredrik Gustafsson
2012-11-05ssh_opts is now a proper listFredrik Gustafsson
2012-11-05After auth rsa and dsa passwords is set to undefinedFredrik Gustafsson
2012-11-05Removing the password after authFredrik Gustafsson
2012-11-05Not start the idle timer on connectFredrik Gustafsson
2012-10-31Check cache on channel execFredrik Gustafsson
2012-10-31handle no idle-timer on check cacheFredrik Gustafsson
2012-10-31Option idle_time introduced, it will trigger the timer and if it is not ↵Fredrik Gustafsson
given the timer_ref entry is infinity
2012-10-31Timeout after 1h of idle on connection, which exits the connectionFredrik Gustafsson
2012-10-05Improve interoperability with SSH clientsStefan Zegenhagen
This patch fixes a few problems of the SSH shell server that affect the interoperability with SSH clients in widespread use. First problem is that, whenever a channel_request message is received with want_reply=true, the reply ends up being sent to the servers channel id, not the clients channel id. This causes the client to terminate the connection. The easiest solution to the problem appears to be a new function in ssh_connection_manager.erl that translates the servers channel id before sending the reply (in the same manner as other functions do it). Second problem is in ssh_cli.erl. When an SSH client sends a window_change request between PTY allocation and starting the shell (which appears to happen with some clients), ssh_cli.erl crashes because #state.buf is yet 'undefined'. Allocating an empty buffer at PTY allocation time solves the problem. Affected SSH clients: - all clients based on SSH-2.0-TrileadSSH2Java_213 (problem #1) - SSH Term Pro (problem #2)
2012-10-03ssh: ssh_connection:channel_data() and send_eof() now return {error, closed} ↵Daniel Goertzen
for closed or invalid channels. ssh_connection:handle_msg(#ssh_msg_channel_close...) will now cause any send() that was in progress to immediately return {error,closed}.
2012-06-01Improved handling of multiple closesIngela Anderton Andin
exit:{normal} -> exit:{normal, _} this typo could sometimes cause a crash when trying to close a channel that was already closed.
2012-05-04The channel id in a channel failure message, sent to the peer, is now in all ↵Ingela Anderton Andin
cases the remote channel id
2012-04-20Avoid sending two ssh close messagesIngela Anderton Andin
2012-03-22ssh:close/1 will no longer crash if ssl manager already happens to haveIngela Anderton Andin
been terminated. The function ssh_connection_manager:call now handles that exit reason may be shutdown.
2012-02-28Prevent client hanging. (OTP-8111)Ingela Anderton Andin
Restored supervisor tree so that error propagation will work as intended, although connection processes are set to temporary, instead of permanent with restart times set to 0, and termination of the connection subtree is initiated by a temporary process spawned by ssh_connection_managers terminate. This is done to avoid unwanted supervisor reports. Pherhaps we need some new supervisor functionality.
2012-02-13Avoid to crash if the remote side closes the connection prematurelyIngela Anderton Andin
2010-12-20OTP-8987Niclas Eklund
In some cases SSH returned {error, normal} when a channel was terminated unexpectedly. This has now been changed to {error, channel_closed}. OTP-8986 It is now possible to use SSH to sign and verify binary data.
2010-09-02fix process leak in ssh_system_sup (dynamicaly created childs where not ↵Stefan Grundmann
cleaned up) The ssh_system_sup supervisor supervises one ssh_subsystem_sup process for every client connection. There was no functionality to free resources (terminate_child/ delete_child) when a client connection was closed. Which lead to one ssh_subsystem_sup and one ssh_channel_sup process left over. This commit adds ssh_system_sup:stop_subsystem/2 and code that calls it in ssh_connection_manager:terminate/2.
2010-08-23ssh: Patch 1127Niclas Eklund
OTP-8735 SSH in some cases generated a crash report when a channel was closed in a normal way.
2010-08-20ssh: Patch 1119Niclas Eklund
OTP-8550 The function ssh:connect/4 was not exported. OTP-8644 Aligned error message with used version (SSH_FX_FAILURE vs SSH_FX_NOT_A_DIRECTORY, the latter introduced in version 6). OTP-8645 Resolved race condition when another connection is started before a channel is opened in the first connection. OTP-8535 The configuration parameter ip_v6_disabled is now available, which makes it possible for the user to alter the IP version SSH shall use. OTP-8534 The ssh_connection:send operation now accepts infinity as timeout. OTP-8524 The connection handler now include stack traces when a channel message is not handled correctly.
2009-11-20The R13B03 release.OTP_R13B03Erlang/OTP