Nir Soffer has posted comments on this change. Change subject: json-rpc: Protocol detection ......................................................................
Patch Set 20: (1 comment) http://gerrit.ovirt.org/#/c/26300/20/vdsm/protocolDetector.py File vdsm/protocolDetector.py: Line 144: _, client_socket = self.pending_connections[fd] Line 145: data = client_socket.recv(4096, socket.MSG_PEEK) Line 146: except socket.error as e: Line 147: if e.errno not in (errno.EAGAIN, errno.EINPROGRESS): Line 148: self.log.warn("Not able to read data") > Please take a look at logging module. You can see that: But this is not documented - probably this was done for backward compatibility. To avoid confusion, we should use only the documented form. Since this module is new, there is only one correct form for this module. Line 149: client_socket.close() Line 150: return Line 151: Line 152: handler = self.detect_protocol(data) -- To view, visit http://gerrit.ovirt.org/26300 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id739a40e2b37dcc175137ec91cd5ec166ad24a75 Gerrit-PatchSet: 20 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Piotr Kliczewski <[email protected]> Gerrit-Reviewer: Barak Azulay <[email protected]> Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: Piotr Kliczewski <[email protected]> Gerrit-Reviewer: Saggi Mizrahi <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: Yeela Kaplan <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
