File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ === unreleased
2
+
3
+ * Add Channel#on_open_failed callback hook [Jamis Buck]
4
+
5
+
1
6
=== 1.0.0 / 1 May 2008
2
7
3
8
* (no changes since the last preview release)
Original file line number Diff line number Diff line change @@ -199,6 +199,20 @@ def on_eof(&block)
199
199
self
200
200
end
201
201
202
+ # Registers a callback on all component channels, to be invoked when the
203
+ # remote server is unable to open the channel. The callback will be
204
+ # invoked with three arguments: the channel object that couldn't be
205
+ # opened, a description of the error (as a string), and an integer code
206
+ # representing the error.
207
+ #
208
+ # channel.on_open_failed do |ch, description, code|
209
+ # # ...
210
+ # end
211
+ def on_open_failed ( &block )
212
+ channels . each { |channel | channel . on_open_failed ( &block ) }
213
+ self
214
+ end
215
+
202
216
# Registers a callback on all component channels, to be invoked when the
203
217
# remote server sends a channel request of the given +type+. The callback
204
218
# will be invoked with two arguments: the specific channel object receiving
You can’t perform that action at this time.
0 commit comments