summaryrefslogtreecommitdiff
path: root/lib/net/ssh/connection/session.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix typoRobin Wallin2023-01-171-1/+1
|
* Fix rubocop coding style.Florian Wininger2021-10-251-13/+13
| | | | Lot of spacing issues :)
* Support frozen_string_literalsmfazekas/frozen-literalMiklós Fazekas2021-08-071-2/+2
|
* Remove Trailing white spaceFlorian Wininger2021-07-011-90/+90
|
* Fix empty line for code clarityFlorian Wininger2021-07-011-2/+3
|
* Remove ruby_compat to comply with the new Ruby >= 2.3 requirementMaxime Alay-Eddine2019-11-131-1/+0
|
* Define rubocop metric lengthFlorian Wininger2019-09-251-3/+7
| | | | Signed-off-by: Florian Wininger <fw.centrale@gmail.com>
* Whitespace fixeswhitespace-fixesMiklos Fazekas2018-03-211-1/+3
|
* Updated rubocopMiklos Fazekas2018-03-211-678/+675
|
* Call a process after the loop so we actually send stuff enqueued by stuff in ↵Miklos Fazekas2017-07-111-0/+9
| | | | loop
* Rubocop update to 0.46.0Miklos Fazekas2016-12-151-2/+2
|
* Added .exitstatus to exec! return valueMiklos Fazekas2016-11-251-4/+26
|
* When we have an exec and server closes transports just afer sucessfull ↵Miklos Fazekas2016-11-251-3/+3
| | | | response to exec then we should not raise from the exec
* Ignore Net::SSH::Disconnect when all channels closedMiklos Fazekas2016-08-141-1/+5
|
* UTF-8: Optimize away dup when it's safe, added integrations testsMiklos Fazekas2016-07-231-0/+1
|
* EventLoop abstractionMiklos Fazekas2016-04-161-17/+39
|
* Merge pull request #351 from mfazekas/user-nobodyMiklós Fazekas2016-04-071-0/+3
|\ | | | | ENV["HOME"] might be empty so filter non expandable paths
| * Fixed another issue with closing channels on transport closeMiklos Fazekas2016-04-071-0/+3
| |
* | Callbacks from channel open migth open new channelsMiklos Fazekas2016-04-071-11/+16
|/ | | | Fixes: #110
* Add max_select_wait_time methodEugene Kenny2016-03-301-5/+8
| | | | | This is required in Net::SSH::Multi, so that the aggregated event loop can decide how frequently to wake up and run the callbacks.
* Close channels if trasport closedMiklos Fazekas2016-03-261-0/+13
|
* fix indentation of Session#cleanup_channelSteven Davidovitz2016-03-171-3/+3
|
* Use minimum timeout when calling IO#selectEugene Kenny2016-03-111-3/+5
| | | | | | | If keepalive is enabled and the wait parameter is given when starting the event loop, we should pass the minimum of the two values through to IO#select. Otherwise the event loop could block for too long, and keepalive packets would not be sent as often as they should be.
* Wait for sending CHANNEL_CLOSE until output buffer is empty.Christopher F. Auston2015-12-051-2/+11
| | | | Closes #280
* exec! should return empty stringMiklos Fazekas2015-09-191-3/+5
|
* Document that Net::SSH::Connection::Session#exec! returns nil if there is no ↵Uwe Kubosch2015-08-181-2/+2
| | | | output from the remote command
* Make keepalive a classkeepalive-classMiklos Fazekas2014-12-231-5/+8
|
* refactor keepalive to a modulekeepalive-maxcountMiklos Fazkeas2014-12-021-37/+4
|
* Implemented keepalive_maxcountMiklos Fazkeas2014-12-021-3/+15
|
* 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-101-2/+6
| | | | | | | | | | | | | | 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.
* 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-051-2/+2
| | | | 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.
* 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-201-11/+21
| | | | 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 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
* 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