# File lib/network/connection.rb, line 131 def handle_close @connected = false publish(:disconnected) unsubscribe_all log.info "(#{self.object_id}) Connection '#{@host}(#{@addr})' closing" @server.unregister(self) # @sock.shutdown # odd errors thrown with this @sock.close rescue Exception log.error "(#{self.object_id}) Connection#handle_close closing" log.error $! end