

def send_response(self, msgid, header, data, closeConnection):
    ' Send response header text/html\n        '
    connection = self.connections[msgid]
    if (not connection.connection_lost):
        if (closeConnection is not None):
            connection.send(str(header))
        if (data is not None):
            connection.send(str(data))
        if closeConnection:
            connection.close()
            del self.connections[msgid]
        return True
    del self.connections[msgid]
    return False

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvincontrol.py CalvinControlTunnel.send_response/VarMisuse@41/63 `header`->`closeConnection`