diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-03 11:53:57 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-03 12:04:22 +0900 |
commit | 3bec944cea2d7c5f09198747e9e33c4cfdbb5cd4 (patch) | |
tree | 6ac5516b441e25e4b96dd707171ae2467235bd49 /lib/plum/connection.rb | |
parent | 3a52f04bc7842dd11df6710d10522ad06180d3b2 (diff) | |
download | plum-3bec944cea2d7c5f09198747e9e33c4cfdbb5cd4.tar.gz |
split server into plum/server
Diffstat (limited to 'lib/plum/connection.rb')
-rw-r--r-- | lib/plum/connection.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/plum/connection.rb b/lib/plum/connection.rb index a8b2916..df3d7b3 100644 --- a/lib/plum/connection.rb +++ b/lib/plum/connection.rb @@ -36,7 +36,6 @@ module Plum @max_odd_stream_id = 0 @max_even_stream_id = 0 end - private :initialize # Emits :close event. Doesn't actually close socket. def close @@ -79,18 +78,6 @@ module Plum @writer.call(frame.assemble) end - def negotiate! - unless CLIENT_CONNECTION_PREFACE.start_with?(@buffer.byteslice(0, 24)) - raise ConnectionError.new(:protocol_error) # (MAY) send GOAWAY. sending. - end - - if @buffer.bytesize >= 24 - @buffer.byteshift(24) - @state = :waiting_settings - settings(@local_settings) - end - end - def new_stream(stream_id, **args) if stream_id.even? @max_even_stream_id = stream_id |