lib/tapyrus/network/connection.rb in tapyrus-0.3.4 vs lib/tapyrus/network/connection.rb in tapyrus-0.3.5
- old
+ new
@@ -18,11 +18,11 @@
def initialize(peer)
@peer = peer
@logger = peer.logger
@sendheaders = false
@attr_accessor = 0
- @message = ''
+ @message = ""
self.pending_connect_timeout = 5.0
end
def post_init
logger.info "connected. #{addr}"
@@ -42,10 +42,10 @@
def addr
peer.addr
end
# close network connection.
- def close(msg = '')
+ def close(msg = "")
logger.info "close connection with #{addr}. #{msg}"
close_connection_after_writing
end
def handle_error(e)