# File lib/network/connection.rb, line 178 def update(msg) case msg when :quit handle_output @closing = true when :reconnecting unsubscribe_all log.info "(#{self.object_id}) Connection '#{@host}(#{@addr})' closing for reconnection" @server.unregister(self) # @sock.shutdown # odd errors thrown with this @sock.close when String sendmsg(msg) else log.error "(#{self.object_id}) Connection#update - unknown message '#{@msg.inspect}'" end rescue # We squash and print out all exceptions here. There is no reason to # throw these back at out subscribers. log.error $! end