From 47fa90fae2c514beaa3b81d0a8f4d836db299f1e Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Thu, 9 Apr 2015 10:53:43 -0600 Subject: [PATCH] Remove zero-length data panic from messaging.Conn. This check is no longer necessary as the checksum added to the messaging.Message will catch any data errors. --- messaging/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/messaging/client.go b/messaging/client.go index 11a9eba28e..260c956e78 100644 --- a/messaging/client.go +++ b/messaging/client.go @@ -674,9 +674,9 @@ func (c *Conn) stream(req *http.Request, closing <-chan struct{}) error { return fmt.Errorf("decode: %s", err) } - // Panic if we received no data. + // Log if we received a message with no data. if len(m.Data) == 0 { - panic("messaging conn no data recv") + c.Logger.Printf("conn recv message w/ no data: type=%x", m.Type) } // TODO: Write broker set updates, do not passthrough to channel.