Vinzenz Feenstra has posted comments on this change.
Change subject: Improvement of the GuestAgent class memory usage
......................................................................
Patch Set 6: (1 inline comment)
....................................................
File vdsm/guestIF.py
Line 285: while (not self._stopped) and '\n' in data:
Line 286: line, data = data.split('\n', 1)
Line 287: line = ''.join(self._buffer) + line
Line 288: self._clear_read_buffer()
Line 289: if self._message_state is MessageState.TOO_BIG:
This is on purpose. To discard the rest of the line once it went into the
TOO_BIG state.
Each line is one message, if the TOO_BIG status is set, the message must be
corrupted. There's no reason to actually start parsing it.
This won't discard any good message. Because a good message will never be
TOO_BIG.
Line 290: self._message_state = MessageState.NORMAL
Line 291: self.log.error("[GuestAgent._handle_data] Not
processing "
Line 292: "current message because it was too
big")
Line 293: else:
--
To view, visit http://gerrit.ovirt.org/9239
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ibf6274bb10c9e3b80962b69c5df316f03ee21214
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Gal Hammer <[email protected]>
Gerrit-Reviewer: Peter V. Saveliev <[email protected]>
Gerrit-Reviewer: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: Zhou Zheng Sheng <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches