aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plum/flow_control.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-09-28 21:22:28 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-09-28 21:22:28 +0900
commitd2f6b5d9a2a27852522da18b209bf6f2b34302b5 (patch)
treee63a074fc3c7b68c3ebbc1f0cb3ff4ef3280cdc3 /lib/plum/flow_control.rb
parent53c3791ae6ce6f4c7c9e2ef7148ad5bb25976a5f (diff)
downloadplum-d2f6b5d9a2a27852522da18b209bf6f2b34302b5.tar.gz
enable frozen-string-literal option (for Ruby 2.3.0-dev)
Diffstat (limited to 'lib/plum/flow_control.rb')
-rw-r--r--lib/plum/flow_control.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/plum/flow_control.rb b/lib/plum/flow_control.rb
index f01905a..8f5f48d 100644
--- a/lib/plum/flow_control.rb
+++ b/lib/plum/flow_control.rb
@@ -1,3 +1,4 @@
+# -*- frozen-string-literal: true -*-
using Plum::BinaryString
module Plum
@@ -23,7 +24,7 @@ module Plum
# @param wsi [Integer] The amount to increase receiving window size. The legal range is 1 to 2^32-1.
def window_update(wsi)
@recv_remaining_window += wsi
- payload = "".push_uint32(wsi & ~(1 << 31))
+ payload = String.new.push_uint32(wsi & ~(1 << 31))
sid = (Stream === self) ? self.id : 0
send_immediately Frame.new(type: :window_update, stream_id: sid, payload: payload)
end