lib/rio/scheme/tcp.rb in rio-0.5.1 vs lib/rio/scheme/tcp.rb in rio-0.6.0

- old
+ new

@@ -1,8 +1,8 @@ #-- # =========================================================================== -# Copyright (c) 2005-2012 Christopher Kleckner +# Copyright (c) 2005-2017 Christopher Kleckner # All rights reserved # # This file is part of the Rio library for ruby. # # Rio is free software; you can redistribute it and/or modify @@ -39,10 +39,9 @@ def opaque() sprintf('//%s:%s',@host,@port) end require 'socket' def open(*args) - # @host = 'localhost' if @host.nil? or @host.empty? super(::TCPSocket.new(@host || 'localhost',@port)) end def to_s() self.url end # must be able to process