Module: H2::Client::ExceptionlessIO

Included in:
H2::Client
Defined in:
lib/h2/client.rb

Overview

use exceptionless IO if this ruby version supports it

Instance Method Summary collapse

Instance Method Details

#read_from_socket(maxlen) ⇒ Object



396
397
398
# File 'lib/h2/client.rb', line 396

def read_from_socket maxlen
  socket.read_nonblock maxlen, exception: false
end

#write_to_socket(bytes) ⇒ Object



400
401
402
# File 'lib/h2/client.rb', line 400

def write_to_socket bytes
  socket.write_nonblock bytes, exception: false
end