X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tools%2Ffastbgp%2Fplay.py;fp=tools%2Ffastbgp%2Fplay.py;h=d04e2e75e7687127198bd4b07b656f5f846f9fed;hb=5fdc9e18a459ed3201228aeb3b745639b137d0a5;hp=21fd5a8175a9801df3c6fb51ac3ed31169174692;hpb=190a3d744b4c42c454aafe3573e448842d8e7354;p=integration%2Ftest.git diff --git a/tools/fastbgp/play.py b/tools/fastbgp/play.py index 21fd5a8175..d04e2e75e7 100755 --- a/tools/fastbgp/play.py +++ b/tools/fastbgp/play.py @@ -1492,15 +1492,9 @@ class ReadTracker(object): """ # TODO: We could return the whole message, currently not needed. # We assume the socket is readable. - logger.info("Receiving %d bytes", self.bytes_to_read) chunk_message = self.socket.recv(self.bytes_to_read) - msglen = len(chunk_message) - logger.info("Received %d bytes", msglen) self.msg_in += chunk_message - logger.info("Current message is %d bytes", len(self.msg_in)) - self.bytes_to_read -= msglen - logger.info("Checking %d bytes to read (header=%s)", - self.bytes_to_read, self.reading_header) + self.bytes_to_read -= len(chunk_message) # TODO: bytes_to_read < 0 is not possible, right? if not self.bytes_to_read: # Finished reading a logical block. @@ -1540,8 +1534,6 @@ class ReadTracker(object): self.bytes_to_read = self.header_length # We should not act upon peer_hold_time if we are reading # something right now. - logger.info("Require %d bytes to read (header=%s)", - self.bytes_to_read, self.reading_header) return def decode_path_attributes(self, path_attributes_hex):