aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plum/connection_utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plum/connection_utils.rb')
-rw-r--r--lib/plum/connection_utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plum/connection_utils.rb b/lib/plum/connection_utils.rb
index ba8acbd..4d06594 100644
--- a/lib/plum/connection_utils.rb
+++ b/lib/plum/connection_utils.rb
@@ -19,9 +19,9 @@ module Plum
# Sends GOAWAY frame to the peer and closes the connection.
# @param error_type [Symbol] The error type to be contained in the GOAWAY frame.
- def goaway(error_type = :no_error)
+ def goaway(error_type = :no_error, message = "")
last_id = @max_stream_ids.max
- send_immediately Frame.goaway(last_id, error_type)
+ send_immediately Frame.goaway(last_id, error_type, message)
end
# Returns whether peer enables server push or not