Skip to Content Skip to Search

WriteTimeout, a subclass of Timeout::Error, is raised if a chunk of the response cannot be written within the write_timeout. Not raised on Windows.

Methods
M
N

Attributes

[R] io

Class Public methods

new(io = nil)

# File ruby/lib/net/protocol.rb, line 100
def initialize(io = nil)
  @io = io
end

Instance Public methods

message()

# File ruby/lib/net/protocol.rb, line 105
def message
  msg = super
  if @io
    msg = "#{msg} with #{@io.inspect}"
  end
  msg
end