summaryrefslogtreecommitdiff
path: root/lib/net/ssh/connection
Commit message (Collapse)AuthorAgeFilesLines
* refactor keepalive to a modulekeepalive-maxcountMiklos Fazkeas2014-12-022-37/+51
|
* Implemented keepalive_maxcountMiklos Fazkeas2014-12-021-3/+15
|
* Automatically forward environment variables defined in OpenSSH config filesRobert Schulze2013-09-091-0/+20
| | | | Also accept `:send_env` option on `Net::SSH.start`
* implement a experimental keepalive featureNorihito Yoshioka2013-08-181-1/+32
|
* add a wait to the loop in closeJosh Kalderimis2013-06-201-1/+1
| | | this is possibly blocking in cases where the connection is now unresponsive, and also causing timeouts which wrap this to block.
* connection/channel+session: lower max packet size & allow manual size.Oliver2013-04-102-5/+9
| | | | | | | | | | | | | | Per section 6.1 of RFC 4253 an SSH implementation MUST support a packet size of 32768 bytes, however, any size above this is not mandatory. Currently, the max packet size is 64Kb and can cause a channel open failure for hosts which only support the required 32Kb packet size. As a result, we now default to the required size of 32768 (0x8000) in order to avoid any errors with such hosts. Additionally, the user can now manually define the maximum packet and window size, should they choose to in the event that they wish to obtain performance gains from a larger packet/window size.
* Fix code example indentation to render well in RDocPierre Riteau2011-03-081-4/+4
|
* Fix for process code to correctly wait until remote_id is set before sending ↵delano2011-01-141-1/+1
| | | | any output, including eof.
* delay CHANNEL_EOF packet until output buffer is emptyRich Lane2010-06-041-2/+7
| | | | | | Previously, calling #eof! after #send_data would result in the CHANNEL_EOF packet being sent immediately, ahead of the data in the output buffer. Now buffer becomes empty.
* Apply IO#select threading fix for Ruby 1.8 (cover all instances of IO#select)Daniel Azuma2009-08-271-1/+2
|
* Ignore requests for non-existent channelsJamis Buck2009-01-311-1/+11
| | | | | This works around a bug in some ssh servers, where channel requests are sent to channels after the channels have been closed.
* Add a terminate! method for hard shutdownsJamis Buck2009-01-311-1/+9
|
* don't spin in Session#close while waiting for channels to closeWill Bryant2008-09-151-1/+1
|
* tests all pass with ruby19Jamis Buck2008-09-061-5/+5
|
* Add Connection::Session#closed? to allow easier querying of the closed stateJamis Buck2008-08-261-0/+9
|
* Make channel open failures work via a callback to parallel how channel open ↵Jamis Buck2008-04-052-3/+30
| | | | successes work
* break Connection#process into preprocess, process, and postprocess, to make ↵Jamis Buck2008-03-281-9/+47
| | | | it easier to hook into. Add per-connection properties.
* only check for pending_writes if the IO responds to pending_write?. Don't ↵Jamis Buck2008-03-231-1/+1
| | | | let a shutdown or close failure cause an error on shutting down a forwarded port.
* better docs on Channel#envJamis Buck2008-03-221-1/+3
|
* add support for 'env' channel requestsJamis Buck2008-03-221-0/+11
|
* more docs for Connection::Term. Docs for the connection proxy implementations.Jamis Buck2008-03-211-1/+4
|
* docs for Net::SSH::Connection::Term constants. make Channel#request_pty ↵Jamis Buck2008-03-212-9/+113
| | | | implementation a bit clearer.
* more docs for Net::SSH::Connection::Session. Also added busy? to hide the ↵Jamis Buck2008-03-211-18/+143
| | | | channels implementation.
* get rid of readers/writers and consolidate that into listeners. certainly ↵Jamis Buck2008-03-211-29/+15
| | | | less optimized, but let's aim for simplicity first
* more documentation. flesh out the docs on Net::SSH::Connection::Channel a ↵Jamis Buck2008-03-203-40/+206
| | | | bit more, to be more helpful as rdoc and ri docs
* refactor the log levelsJamis Buck2008-03-171-14/+14
|
* use Hoe to centralized rakefile logicJamis Buck2008-03-161-5/+1
|
* add Channel#eof? and Channel#eof!Jamis Buck2007-08-241-2/+20
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@205 1d2a57f2-1ded-0310-ad52-83097a15a5de
* add active? and wait methods to channelJamis Buck2007-08-211-0/+13
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@203 1d2a57f2-1ded-0310-ad52-83097a15a5de
* add Session#exec and Session#exec!, to make the common case of executing ↵Jamis Buck2007-08-201-0/+51
| | | | | | commands a LOT simpler git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@195 1d2a57f2-1ded-0310-ad52-83097a15a5de
* make sure CHANNEL_OPEN_FAILURE is handledJamis Buck2007-08-181-0/+6
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@194 1d2a57f2-1ded-0310-ad52-83097a15a5de
* some more api docsJamis Buck2007-08-171-0/+94
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@191 1d2a57f2-1ded-0310-ad52-83097a15a5de
* Starting to document everythingJamis Buck2007-08-171-75/+251
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@190 1d2a57f2-1ded-0310-ad52-83097a15a5de
* use an exception to indicate whether a channel request failed or not, rather ↵Jamis Buck2007-08-161-4/+6
| | | | | | than return value git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@189 1d2a57f2-1ded-0310-ad52-83097a15a5de
* connection session testsJamis Buck2007-08-151-9/+10
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@182 1d2a57f2-1ded-0310-ad52-83097a15a5de
* channel testsJamis Buck2007-08-151-2/+1
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@181 1d2a57f2-1ded-0310-ad52-83097a15a5de
* don't actually need to check for closed readers if clients remember to stop ↵Jamis Buck2007-08-101-3/+0
| | | | | | listening git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@146 1d2a57f2-1ded-0310-ad52-83097a15a5de
* Add support for cancelling forwarded connectionsJamis Buck2007-08-101-4/+13
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@145 1d2a57f2-1ded-0310-ad52-83097a15a5de
* add support for :rekey_limit, :rekey_packet_limit and :rekey_block_limitJamis Buck2007-08-101-0/+2
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@143 1d2a57f2-1ded-0310-ad52-83097a15a5de
* make the forward agent configurable (and off by default)Jamis Buck2007-08-092-2/+3
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@142 1d2a57f2-1ded-0310-ad52-83097a15a5de
* Add helper for requesting an SSH subsystem. Make sure as much pending output ↵Jamis Buck2007-08-011-8/+16
| | | | | | as possible is enqueued on each poll request. git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@137 1d2a57f2-1ded-0310-ad52-83097a15a5de
* Some more buffer enhancements (needed by the net-scp implementation) and ↵Jamis Buck2007-07-291-3/+5
| | | | | | make sure channel.close doesn't blow up if the channel has not been confirmed open yet git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@136 1d2a57f2-1ded-0310-ad52-83097a15a5de
* register for specific channel requests and global requests, and ↵Jamis Buck2007-07-282-4/+41
| | | | | | automatically send success or failure if want_reply is true. git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@135 1d2a57f2-1ded-0310-ad52-83097a15a5de
* check the continuation status immediately after processing channels to avoid ↵Jamis Buck2007-07-282-2/+8
| | | | | | blocking on the select. fix the extended_data callback to use the correct parameters. git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@134 1d2a57f2-1ded-0310-ad52-83097a15a5de
* extended data callback. make sure remainder_as_buffer always returns a BufferJamis Buck2007-07-271-1/+1
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@132 1d2a57f2-1ded-0310-ad52-83097a15a5de
* add request_ptyJamis Buck2007-07-273-5/+103
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@131 1d2a57f2-1ded-0310-ad52-83097a15a5de
* add some loggingJamis Buck2007-07-271-0/+1
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@130 1d2a57f2-1ded-0310-ad52-83097a15a5de
* auth agent forwardingJamis Buck2007-07-272-27/+67
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@129 1d2a57f2-1ded-0310-ad52-83097a15a5de
* service for managing local and remote forwarded portsJamis Buck2007-07-271-0/+5
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@128 1d2a57f2-1ded-0310-ad52-83097a15a5de
* Net::SSH.startJamis Buck2007-07-271-0/+6
| | | | git-svn-id: http://svn.jamisbuck.org/net-ssh/branches/v2@127 1d2a57f2-1ded-0310-ad52-83097a15a5de