class HTTP::Timeout::PerOperation

def readpartial(size)

Read data from the socket
def readpartial(size)
  rescue_readable do
    socket.read_nonblock(size)
  end
rescue EOFError
  :eof
end