示例#1
0
 def childDataReceived(self, childFD, data):
     if childFD == 2:
         for msg in data.split("\n"):
             msg = msg.strip()
             if msg != "":
                 name = self._name or "Child"
                 log.msg(msg, system="{:<10} {:>6}".format(name, self.transport.pid))
     else:
         _WrapIProtocol.childDataReceived(self, childFD, data)
示例#2
0
 def childDataReceived(self, childFD, data):
     """
     Some data has come in from the process child. If it's one of our
     log FDs, log it. Otherwise, let _WrapIProtocol deal with it.
     """
     if childFD in self._worker._log_fds:
         self._worker.log(childFD, data)
     else:
         _WrapIProtocol.childDataReceived(self, childFD, data)
示例#3
0
 def childDataReceived(self, childFD, data):
     """
     Some data has come in from the process child. If it's one of our
     log FDs, log it. Otherwise, let _WrapIProtocol deal with it.
     """
     if childFD in self._worker._log_fds:
         self._worker.log(childFD, data)
     else:
         _WrapIProtocol.childDataReceived(self, childFD, data)
示例#4
0
        def childDataReceived(self, childFD, data):
            """
            Some data has come in from the process child. If it's one of our
            log FDs ([2]), log it. Otherwise, let _WrapIProtocol deal with it.
            """
            # track bytes received per child FD
            self._worker.track_stats(childFD, len(data))

            if childFD in self._worker._log_fds:
                self._worker.log(childFD, data)
            else:
                _WrapIProtocol.childDataReceived(self, childFD, data)
示例#5
0
        def childDataReceived(self, childFD, data):
            """
            Some data has come in from the process child. If it's one of our
            log FDs ([2]), log it. Otherwise, let _WrapIProtocol deal with it.
            """
            # track bytes received per child FD
            self._worker.track_stats(childFD, len(data))

            if childFD in self._worker._log_fds:
                self._worker.log(childFD, data)
            else:
                _WrapIProtocol.childDataReceived(self, childFD, data)
示例#6
0
 def childDataReceived(self, childFD, data):
     """
     Some data has come in from the process child. If it's one of our
     log FDs, log it. If it's on FD3, send it to the WAMP connection.
     Otherwise, let _WrapIProtocol deal with it.
     """
     if childFD in self._worker._log_fds:
         self._worker.log(childFD, data)
     elif childFD == 3:
         self.protocol.dataReceived(data)
     else:
         _WrapIProtocol.childDataReceived(self, childFD, data)
示例#7
0
 def childDataReceived(self, childFD, data):
     """
     Some data has come in from the process child. If it's one of our
     log FDs, log it. If it's on FD3, send it to the WAMP connection.
     Otherwise, let _WrapIProtocol deal with it.
     """
     if childFD in self._worker._log_fds:
         self._worker.log(childFD, data)
     elif childFD == 3:
         self.protocol.dataReceived(data)
     else:
         _WrapIProtocol.childDataReceived(self, childFD, data)
示例#8
0
 def childDataReceived(self, childFD, data):
    if childFD in self._worker._log_fds:
       self._worker.log(childFD, data)
    else:
       _WrapIProtocol.childDataReceived(self, childFD, data)
示例#9
0
 def childDataReceived(self, childFD, data):
     if childFD in self._worker._log_fds:
         self._worker.log(childFD, data)
     else:
         _WrapIProtocol.childDataReceived(self, childFD, data)