)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"f5b1a6b955fd4d658a6275113d9c58c194f6e7cf","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"116fe25d_b3a59648","updated":"2026-08-21 15:49:47.000000000","message":"Marking as draft since the script already work and can be used to test/demonstrate the appcontrol feature, they still need work and cleanup to be good examples.","commit_id":"2137330bbf353f24784c67ed259ddd3c897fc296"}],"sample/management/omi.py":[{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":29,"context_line":"This implements the generic part of the OMI protocol that is common"},{"line_number":30,"context_line":"to both client and server."},{"line_number":31,"context_line":"\"\"\""},{"line_number":32,"context_line":"import asyncio"},{"line_number":33,"context_line":"import logging"},{"line_number":34,"context_line":"import re"},{"line_number":35,"context_line":"from asyncio import Future"}],"source_content_type":"text/x-python","patch_set":5,"id":"39c7d200_a6d60073","line":32,"updated":"2026-10-29 12:07:49.000000000","message":"We should have full typing in this file, currently it\u0027s only partial","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":29,"context_line":"This implements the generic part of the OMI protocol that is common"},{"line_number":30,"context_line":"to both client and server."},{"line_number":31,"context_line":"\"\"\""},{"line_number":32,"context_line":"import asyncio"},{"line_number":33,"context_line":"import logging"},{"line_number":34,"context_line":"import re"},{"line_number":35,"context_line":"from asyncio import Future"}],"source_content_type":"text/x-python","patch_set":5,"id":"1643a01f_f130b016","line":32,"in_reply_to":"39c7d200_a6d60073","updated":"2026-10-29 17:08:14.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":76,"context_line":"        self._can_send \u003d asyncio.Event()"},{"line_number":77,"context_line":"        self._can_send.clear()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        # Event to"},{"line_number":80,"context_line":"        self._management_ready \u003d asyncio.Event()"},{"line_number":81,"context_line":"        self._management_ready.clear()"},{"line_number":82,"context_line":"        self._response \u003d []"}],"source_content_type":"text/x-python","patch_set":5,"id":"28ac9a86_5f732c88","line":79,"updated":"2026-10-29 12:07:49.000000000","message":"?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        self._can_send \u003d asyncio.Event()"},{"line_number":77,"context_line":"        self._can_send.clear()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        # Event to"},{"line_number":80,"context_line":"        self._management_ready \u003d asyncio.Event()"},{"line_number":81,"context_line":"        self._management_ready.clear()"},{"line_number":82,"context_line":"        self._response \u003d []"}],"source_content_type":"text/x-python","patch_set":5,"id":"7573c2e7_8fec8a78","line":79,"in_reply_to":"28ac9a86_5f732c88","updated":"2026-10-29 17:08:14.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":85,"context_line":"        self._response_ready.clear()"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self._send_task \u003d asyncio.create_task(self._send_loop())"},{"line_number":88,"context_line":"        self._send_queue \u003d asyncio.Queue()"},{"line_number":89,"context_line":"        self._connect_data: ConnectionProperties \u003d connect_data"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    @override"}],"source_content_type":"text/x-python","patch_set":5,"id":"bc90a116_31fb5ccd","line":88,"updated":"2026-10-29 12:07:49.000000000","message":"self._send_queue \u003d asyncio.Queue() should be declared before self._send_task - its working because task is started on first await but it still quite fragile","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        self._response_ready.clear()"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self._send_task \u003d asyncio.create_task(self._send_loop())"},{"line_number":88,"context_line":"        self._send_queue \u003d asyncio.Queue()"},{"line_number":89,"context_line":"        self._connect_data: ConnectionProperties \u003d connect_data"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    @override"}],"source_content_type":"text/x-python","patch_set":5,"id":"8389385f_aad52f69","line":88,"in_reply_to":"bc90a116_31fb5ccd","updated":"2026-10-29 17:08:14.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":96,"context_line":"    @override"},{"line_number":97,"context_line":"    def connection_lost(self, excp):"},{"line_number":98,"context_line":"        if excp:"},{"line_number":99,"context_line":"            logger.info(f\u0027Connection lost ({excp}). Shutting down.\u0027)"},{"line_number":100,"context_line":"        else:"},{"line_number":101,"context_line":"            logger.info(f\u0027Connection lost. Shutting down.\u0027)"},{"line_number":102,"context_line":"        self._stop()"}],"source_content_type":"text/x-python","patch_set":5,"id":"757ca94a_d2cf3737","line":99,"updated":"2026-10-29 12:07:49.000000000","message":"Maybe warning? Or even error?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    @override"},{"line_number":97,"context_line":"    def connection_lost(self, excp):"},{"line_number":98,"context_line":"        if excp:"},{"line_number":99,"context_line":"            logger.info(f\u0027Connection lost ({excp}). Shutting down.\u0027)"},{"line_number":100,"context_line":"        else:"},{"line_number":101,"context_line":"            logger.info(f\u0027Connection lost. Shutting down.\u0027)"},{"line_number":102,"context_line":"        self._stop()"}],"source_content_type":"text/x-python","patch_set":5,"id":"b39ff904_d6c12a4f","line":99,"in_reply_to":"757ca94a_d2cf3737","updated":"2026-10-29 17:08:14.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def _stop(self):"},{"line_number":105,"context_line":"        if not self.finish_future.done():"},{"line_number":106,"context_line":"            self._send_task.cancel()"},{"line_number":107,"context_line":"            self.finish_future.set_result(True)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    async def _send_loop(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"e3779ffa_5153101f","line":106,"updated":"2026-10-29 12:07:49.000000000","message":"Is this enough? What if we still have items left in _send_queue, for example? I know it\u0027s just a demo, but you never know if someone might just copy-paste it","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def _stop(self):"},{"line_number":105,"context_line":"        if not self.finish_future.done():"},{"line_number":106,"context_line":"            self._send_task.cancel()"},{"line_number":107,"context_line":"            self.finish_future.set_result(True)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    async def _send_loop(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"316c8db6_bdda66ad","line":106,"in_reply_to":"e3779ffa_5153101f","updated":"2026-10-29 17:08:14.000000000","message":"I will add a comment that indicates that we just drop all outstanding commands","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":106,"context_line":"            self._send_task.cancel()"},{"line_number":107,"context_line":"            self.finish_future.set_result(True)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    async def _send_loop(self):"},{"line_number":110,"context_line":"        while True:"},{"line_number":111,"context_line":"            command: OmiSendCommand \u003d await self._send_queue.get()"},{"line_number":112,"context_line":"            await self._can_send.wait()"}],"source_content_type":"text/x-python","patch_set":5,"id":"f688d1f9_fe7f0683","line":109,"updated":"2026-10-29 12:07:49.000000000","message":"Shouldn\u0027t we wrap this loop in a try-except? If there\u0027s any error—like an IndexError or ValueError—this task will just fail silently.","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":false,"context_lines":[{"line_number":106,"context_line":"            self._send_task.cancel()"},{"line_number":107,"context_line":"            self.finish_future.set_result(True)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    async def _send_loop(self):"},{"line_number":110,"context_line":"        while True:"},{"line_number":111,"context_line":"            command: OmiSendCommand \u003d await self._send_queue.get()"},{"line_number":112,"context_line":"            await self._can_send.wait()"}],"source_content_type":"text/x-python","patch_set":5,"id":"e49d5ac3_334177a3","line":109,"in_reply_to":"719060e8_c3265fcc","updated":"2026-11-04 09:49:56.000000000","message":"Acknowledged","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":true,"context_lines":[{"line_number":106,"context_line":"            self._send_task.cancel()"},{"line_number":107,"context_line":"            self.finish_future.set_result(True)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    async def _send_loop(self):"},{"line_number":110,"context_line":"        while True:"},{"line_number":111,"context_line":"            command: OmiSendCommand \u003d await self._send_queue.get()"},{"line_number":112,"context_line":"            await self._can_send.wait()"}],"source_content_type":"text/x-python","patch_set":5,"id":"719060e8_c3265fcc","line":109,"in_reply_to":"f688d1f9_fe7f0683","updated":"2026-10-29 17:08:14.000000000","message":"It will still trigger a backtrace but also the whole program will stop working and that is somewhat expected/intended here as we don\u0027t really have code here to recover from a situation where we misparse/get confused by the management protocol state","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":143,"context_line":"                    response_complete \u003d True"},{"line_number":144,"context_line":"                    status_text \u003d None"},{"line_number":145,"context_line":"                else:"},{"line_number":146,"context_line":"                    pass"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"            # logger.debug(f\u0027Result received command: {response}\u0027)"},{"line_number":149,"context_line":"            result \u003d OmiCommandResult(command.command, response[:-1], status, status_text)"}],"source_content_type":"text/x-python","patch_set":5,"id":"d96be9f6_b0855b40","line":146,"updated":"2026-10-29 12:07:49.000000000","message":"We can remove it","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                    response_complete \u003d True"},{"line_number":144,"context_line":"                    status_text \u003d None"},{"line_number":145,"context_line":"                else:"},{"line_number":146,"context_line":"                    pass"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"            # logger.debug(f\u0027Result received command: {response}\u0027)"},{"line_number":149,"context_line":"            result \u003d OmiCommandResult(command.command, response[:-1], status, status_text)"}],"source_content_type":"text/x-python","patch_set":5,"id":"b103bba0_5151318e","line":146,"in_reply_to":"d96be9f6_b0855b40","updated":"2026-10-29 17:08:14.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        # OMI expects us to authenticate with the password just on"},{"line_number":170,"context_line":"        # its own on a line"},{"line_number":171,"context_line":"        if self._connect_data.password:"},{"line_number":172,"context_line":"            self.transport.write(f\"{self._connect_data.password}\\r\\n\".encode())"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    @override"}],"source_content_type":"text/x-python","patch_set":5,"id":"141584c1_660f74b8","line":171,"updated":"2026-10-29 12:07:49.000000000","message":"If we are checking password, maybe it should be declared as Optional[str]?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        # OMI expects us to authenticate with the password just on"},{"line_number":170,"context_line":"        # its own on a line"},{"line_number":171,"context_line":"        if self._connect_data.password:"},{"line_number":172,"context_line":"            self.transport.write(f\"{self._connect_data.password}\\r\\n\".encode())"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    @override"}],"source_content_type":"text/x-python","patch_set":5,"id":"8b477512_94e9d575","line":171,"in_reply_to":"141584c1_660f74b8","updated":"2026-10-29 17:08:14.000000000","message":"Acknowledged","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":true,"context_lines":[{"line_number":102,"context_line":"    @override"},{"line_number":103,"context_line":"    def connection_lost(self, exc: Exception | None) -\u003e None:"},{"line_number":104,"context_line":"        if exc:"},{"line_number":105,"context_line":"            logger.warn(f\u0027Connection lost ({exc}). Shutting down.\u0027)"},{"line_number":106,"context_line":"        else:"},{"line_number":107,"context_line":"            logger.warn(f\u0027Connection lost. Shutting down.\u0027)"},{"line_number":108,"context_line":"        self._stop()"}],"source_content_type":"text/x-python","patch_set":8,"id":"db7868be_37f2abfa","line":105,"updated":"2026-11-04 09:49:56.000000000","message":"warn is deprecated, use warning","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    @override"},{"line_number":103,"context_line":"    def connection_lost(self, exc: Exception | None) -\u003e None:"},{"line_number":104,"context_line":"        if exc:"},{"line_number":105,"context_line":"            logger.warn(f\u0027Connection lost ({exc}). Shutting down.\u0027)"},{"line_number":106,"context_line":"        else:"},{"line_number":107,"context_line":"            logger.warn(f\u0027Connection lost. Shutting down.\u0027)"},{"line_number":108,"context_line":"        self._stop()"}],"source_content_type":"text/x-python","patch_set":8,"id":"7db6ffdd_e00436fd","line":105,"in_reply_to":"db7868be_37f2abfa","updated":"2026-11-05 13:30:07.000000000","message":"Done","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":true,"context_lines":[{"line_number":208,"context_line":"        # Management protocol does not add a newline after the password prompt"},{"line_number":209,"context_line":"        if not self._management_ready.is_set() and self.recvBuffer.startswith(OMI_PASSWORD_PROMPT):"},{"line_number":210,"context_line":"            logger.debug(f\"Received password prompt\")"},{"line_number":211,"context_line":"            self.recvBuffer \u003d self.recvBuffer[len(OMI_PASSWORD_PROMPT) + 1:]"},{"line_number":212,"context_line":"            self.handle_password_prompt()"},{"line_number":213,"context_line":"            return"},{"line_number":214,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"4cc351c3_8c9f0627","line":211,"updated":"2026-11-04 09:49:56.000000000","message":"snake_case instead of camelCase","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":208,"context_line":"        # Management protocol does not add a newline after the password prompt"},{"line_number":209,"context_line":"        if not self._management_ready.is_set() and self.recvBuffer.startswith(OMI_PASSWORD_PROMPT):"},{"line_number":210,"context_line":"            logger.debug(f\"Received password prompt\")"},{"line_number":211,"context_line":"            self.recvBuffer \u003d self.recvBuffer[len(OMI_PASSWORD_PROMPT) + 1:]"},{"line_number":212,"context_line":"            self.handle_password_prompt()"},{"line_number":213,"context_line":"            return"},{"line_number":214,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"e48d8d77_3212fe8d","line":211,"in_reply_to":"4cc351c3_8c9f0627","updated":"2026-11-05 13:30:07.000000000","message":"Done","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":true,"context_lines":[{"line_number":305,"context_line":"        message \u003d message.strip()"},{"line_number":306,"context_line":"        self.log_message(timestamp, level, message)"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    def log_message(self, time, level, message):"},{"line_number":309,"context_line":"        \"\"\""},{"line_number":310,"context_line":"        A new log message has been received. This method is intended"},{"line_number":311,"context_line":"        to be overridden by a subclass to handle the log messages."}],"source_content_type":"text/x-python","patch_set":8,"id":"94a9e184_80aa8788","line":308,"updated":"2026-11-04 09:49:56.000000000","message":"misssing typing","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        message \u003d message.strip()"},{"line_number":306,"context_line":"        self.log_message(timestamp, level, message)"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    def log_message(self, time, level, message):"},{"line_number":309,"context_line":"        \"\"\""},{"line_number":310,"context_line":"        A new log message has been received. This method is intended"},{"line_number":311,"context_line":"        to be overridden by a subclass to handle the log messages."}],"source_content_type":"text/x-python","patch_set":8,"id":"64acbcd9_4d454eb8","line":308,"in_reply_to":"94a9e184_80aa8788","updated":"2026-11-05 13:30:07.000000000","message":"Done","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"}],"sample/management/omi_client_protocol.py":[{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":49,"context_line":"        :return:"},{"line_number":50,"context_line":"        \"\"\""},{"line_number":51,"context_line":"        if protocol not in self._acc_negotiated_protocols:"},{"line_number":52,"context_line":"            logger.error(f\"Error: trying to send ACC message with protocol {protocol} is not in the negotiated list of protocols ({self._acc_negotiated_protocols})\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        # See init.c for the explanation for the length calculation"},{"line_number":55,"context_line":"        max_header_size \u003d len(\"ACC,\") + len(protocol) + 1 + 4 + 1 + 2 + 1"}],"source_content_type":"text/x-python","patch_set":5,"id":"b8e9bf39_39d266f2","line":52,"updated":"2026-10-29 12:07:49.000000000","message":"Should we have return here?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"6c1facf6225d61b20629a9caf9e569f721c15dfa","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        :return:"},{"line_number":50,"context_line":"        \"\"\""},{"line_number":51,"context_line":"        if protocol not in self._acc_negotiated_protocols:"},{"line_number":52,"context_line":"            logger.error(f\"Error: trying to send ACC message with protocol {protocol} is not in the negotiated list of protocols ({self._acc_negotiated_protocols})\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        # See init.c for the explanation for the length calculation"},{"line_number":55,"context_line":"        max_header_size \u003d len(\"ACC,\") + len(protocol) + 1 + 4 + 1 + 2 + 1"}],"source_content_type":"text/x-python","patch_set":5,"id":"e3dc6bcb_61804468","line":52,"in_reply_to":"b8e9bf39_39d266f2","updated":"2026-11-03 14:02:23.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":63,"context_line":"            msg_part \u003d msg[part_start:part_start + fragment_length]"},{"line_number":64,"context_line":"            b64msg \u003d base64.encodebytes(msg_part).decode()"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"            flags \u003d \"6\""},{"line_number":67,"context_line":"            if part_start + fragment_length \u003c len(msg):"},{"line_number":68,"context_line":"                flags \u003d \"6:F\""},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7ec580b9_a439f41b","line":66,"updated":"2026-10-29 12:07:49.000000000","message":"We should move it to well names constant","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":true,"context_lines":[{"line_number":63,"context_line":"            msg_part \u003d msg[part_start:part_start + fragment_length]"},{"line_number":64,"context_line":"            b64msg \u003d base64.encodebytes(msg_part).decode()"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"            flags \u003d \"6\""},{"line_number":67,"context_line":"            if part_start + fragment_length \u003c len(msg):"},{"line_number":68,"context_line":"                flags \u003d \"6:F\""},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"f8f17d62_40684961","line":66,"in_reply_to":"7ec580b9_a439f41b","updated":"2026-11-05 13:30:07.000000000","message":"I feel that is a bit overdoing it. With the same argument I should also move all the other fixed part of the protocol like acc-msg, client-auth-nt and so on to constants and that would make the code harder to read.","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":70,"context_line":"            commands.append(f\"acc-msg\\n{protocol}\\n{flags}\\n{b64msg}\\nEND\")"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        for command in commands:"},{"line_number":73,"context_line":"            await self.queue_command(command)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    def recv_notify_ACC_PROTOCOLS(self, args):"},{"line_number":76,"context_line":"        params \u003d args.split(\",\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"25c00ce0_13f349c8","line":73,"updated":"2026-10-29 12:07:49.000000000","message":"Could message chunks get mixed up? We yield control here with await, so in theory it could happen?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            commands.append(f\"acc-msg\\n{protocol}\\n{flags}\\n{b64msg}\\nEND\")"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        for command in commands:"},{"line_number":73,"context_line":"            await self.queue_command(command)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    def recv_notify_ACC_PROTOCOLS(self, args):"},{"line_number":76,"context_line":"        params \u003d args.split(\",\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"c00cbabb_dac731cc","line":73,"in_reply_to":"25c00ce0_13f349c8","updated":"2026-10-29 17:08:14.000000000","message":"I changed it to queue all and then use asyncio.gather to wait for all of them","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":98,"context_line":"            self._partial_acc_msg +\u003d msg.decode()"},{"line_number":99,"context_line":"            self._protocol_acc_msg \u003d protocol"},{"line_number":100,"context_line":"        except Exception as e:"},{"line_number":101,"context_line":"            logger.error(f\"Error parsing ACC message: {e}\", exc_info\u003dTrue)"},{"line_number":102,"context_line":"            return"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        fragmented \u003d fragment !\u003d \"0\""}],"source_content_type":"text/x-python","patch_set":5,"id":"b82f1a77_bba35a09","line":101,"updated":"2026-10-29 12:07:49.000000000","message":"Shouldn\u0027t we have self._partial_acc_msg \u003d \"\" here?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":98,"context_line":"            self._partial_acc_msg +\u003d msg.decode()"},{"line_number":99,"context_line":"            self._protocol_acc_msg \u003d protocol"},{"line_number":100,"context_line":"        except Exception as e:"},{"line_number":101,"context_line":"            logger.error(f\"Error parsing ACC message: {e}\", exc_info\u003dTrue)"},{"line_number":102,"context_line":"            return"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        fragmented \u003d fragment !\u003d \"0\""}],"source_content_type":"text/x-python","patch_set":5,"id":"711fdb0e_985ecedf","line":101,"in_reply_to":"b82f1a77_bba35a09","updated":"2026-10-29 17:08:14.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":113,"context_line":"            handler \u003d getattr(self, f\"receive_acc_{protocol}\")"},{"line_number":114,"context_line":"            logger.debug(f\"Calling handler {handler}\")"},{"line_number":115,"context_line":"            try:"},{"line_number":116,"context_line":"                handler(self._partial_acc_msg)"},{"line_number":117,"context_line":"            except Exception as e:"},{"line_number":118,"context_line":"                logger.error(f\"Error parsing ACC message: {e}\", exc_info\u003dTrue)"},{"line_number":119,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"b5cf3b78_9f5084b3","line":116,"updated":"2026-10-29 12:07:49.000000000","message":"Hmm, right now we\u0027re not allowing async handlers. Not sure if that matters for the demo, but they should probably support both sync and async (using nspect.isawaitable)","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":113,"context_line":"            handler \u003d getattr(self, f\"receive_acc_{protocol}\")"},{"line_number":114,"context_line":"            logger.debug(f\"Calling handler {handler}\")"},{"line_number":115,"context_line":"            try:"},{"line_number":116,"context_line":"                handler(self._partial_acc_msg)"},{"line_number":117,"context_line":"            except Exception as e:"},{"line_number":118,"context_line":"                logger.error(f\"Error parsing ACC message: {e}\", exc_info\u003dTrue)"},{"line_number":119,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"e3e8fa09_fa03c57c","line":116,"in_reply_to":"b5cf3b78_9f5084b3","updated":"2026-11-05 13:30:07.000000000","message":"I implemented support for async def function using inspect.iscoroutinefunction in dispatch_to_handler. I am not sure if there is a canonical way to do this instead.","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":true,"context_lines":[{"line_number":35,"context_line":"    Implement the management protocol for the client  "},{"line_number":36,"context_line":"    \"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, finish_future, connect_data):"},{"line_number":39,"context_line":"        super().__init__(finish_future\u003dfinish_future, connect_data\u003dconnect_data)"},{"line_number":40,"context_line":"        self._partial_acc_msg \u003d \"\""},{"line_number":41,"context_line":"        self._protocol_acc_msg \u003d \"\""}],"source_content_type":"text/x-python","patch_set":8,"id":"c15e0009_d75bfc9f","line":38,"updated":"2026-11-04 09:49:56.000000000","message":"Missing typing","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    Implement the management protocol for the client  "},{"line_number":36,"context_line":"    \"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, finish_future, connect_data):"},{"line_number":39,"context_line":"        super().__init__(finish_future\u003dfinish_future, connect_data\u003dconnect_data)"},{"line_number":40,"context_line":"        self._partial_acc_msg \u003d \"\""},{"line_number":41,"context_line":"        self._protocol_acc_msg \u003d \"\""}],"source_content_type":"text/x-python","patch_set":8,"id":"2908d622_516ab121","line":38,"in_reply_to":"c15e0009_d75bfc9f","updated":"2026-11-05 13:30:07.000000000","message":"Acknowledged","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"}],"sample/management/omi_server_demo.py":[{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":79,"context_line":"try:"},{"line_number":80,"context_line":"    import pyotp"},{"line_number":81,"context_line":"except ImportError:"},{"line_number":82,"context_line":"    logger.info(\"pytop module not found. TOTP testing disabled\")"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"class ServerDemoConnectedClient(ConnectedClient):"},{"line_number":85,"context_line":"    # Remember the key-id that we authenticated"}],"source_content_type":"text/x-python","patch_set":5,"id":"d5d44d2c_707ce064","line":82,"updated":"2026-10-29 12:07:49.000000000","message":"typo:)","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":79,"context_line":"try:"},{"line_number":80,"context_line":"    import pyotp"},{"line_number":81,"context_line":"except ImportError:"},{"line_number":82,"context_line":"    logger.info(\"pytop module not found. TOTP testing disabled\")"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"class ServerDemoConnectedClient(ConnectedClient):"},{"line_number":85,"context_line":"    # Remember the key-id that we authenticated"}],"source_content_type":"text/x-python","patch_set":5,"id":"ffb38866_1b18da41","line":82,"in_reply_to":"d5d44d2c_707ce064","updated":"2026-10-29 17:08:14.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":86,"context_line":"    authenticated_kid \u003d None"},{"line_number":87,"context_line":"    env \u003d {}"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"class ServerDemoProtocol(OMIServerProtocol):"},{"line_number":90,"context_line":"    def __init__(self, finish_future, connect_data: ConnectData \u003d None):"},{"line_number":91,"context_line":"        super().__init__(finish_future, connect_data)"},{"line_number":92,"context_line":"        self._connected_client_class \u003d ServerDemoConnectedClient"}],"source_content_type":"text/x-python","patch_set":5,"id":"26e6a206_5301f1a0","line":89,"updated":"2026-10-29 12:07:49.000000000","message":"Same as other files - missing typing","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":86,"context_line":"    authenticated_kid \u003d None"},{"line_number":87,"context_line":"    env \u003d {}"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"class ServerDemoProtocol(OMIServerProtocol):"},{"line_number":90,"context_line":"    def __init__(self, finish_future, connect_data: ConnectData \u003d None):"},{"line_number":91,"context_line":"        super().__init__(finish_future, connect_data)"},{"line_number":92,"context_line":"        self._connected_client_class \u003d ServerDemoConnectedClient"}],"source_content_type":"text/x-python","patch_set":5,"id":"088ca83e_4f70f766","line":89,"in_reply_to":"26e6a206_5301f1a0","updated":"2026-10-29 17:08:14.000000000","message":"Acknowledged","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":94,"context_line":"    def client_event_ESTABLISHED(self, client, kid, env, extra):"},{"line_number":95,"context_line":"        print(f\"CLient connected: {client}\")"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        kid \u003d client.authenticated_kid"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def client_event_CONNECT(self, client, kid, env, extra):"},{"line_number":100,"context_line":"        print(f\"Authenticating client {client.cid}, {kid}\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"55196b65_31eedabe","line":97,"updated":"2026-10-29 12:07:49.000000000","message":"Dow we need it?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":94,"context_line":"    def client_event_ESTABLISHED(self, client, kid, env, extra):"},{"line_number":95,"context_line":"        print(f\"CLient connected: {client}\")"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        kid \u003d client.authenticated_kid"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def client_event_CONNECT(self, client, kid, env, extra):"},{"line_number":100,"context_line":"        print(f\"Authenticating client {client.cid}, {kid}\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"30da819e_89df89ae","line":97,"in_reply_to":"55196b65_31eedabe","updated":"2026-10-29 17:08:14.000000000","message":"Not really but I wanted to keep it as example here.","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":115,"context_line":"        await self.queue_command(client_deny)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    async def do_client_auth(self, client, kid):"},{"line_number":118,"context_line":"        username \u003d client.env.get(\"username\")"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        # success"},{"line_number":121,"context_line":"        if username.startswith(\"url\"):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9309fee4_9008d993","line":118,"updated":"2026-10-29 12:07:49.000000000","message":"get can return None, so it will fail with startswith later","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        await self.queue_command(client_deny)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    async def do_client_auth(self, client, kid):"},{"line_number":118,"context_line":"        username \u003d client.env.get(\"username\")"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        # success"},{"line_number":121,"context_line":"        if username.startswith(\"url\"):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a0ae035_1d50f73d","line":118,"in_reply_to":"9309fee4_9008d993","updated":"2026-11-05 13:30:07.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":163,"context_line":"            await asyncio.sleep(10)"},{"line_number":164,"context_line":"            await self.deny_client(client, kid, \"I got you\")"},{"line_number":165,"context_line":"        elif username \u003d\u003d \u0027openvpn\u0027:"},{"line_number":166,"context_line":"            await self.send_pending_auth(client, webauth + \"https://community.openvpn.net\")"},{"line_number":167,"context_line":"            await self.send_client_auth(client, kid)"},{"line_number":168,"context_line":"        elif username \u003d\u003d \u0027googleext\u0027:"},{"line_number":169,"context_line":"            await self.send_pending_auth(client, kid,  \"WEB_AUTH:external:https://www.google.com/search?q\u003dexternal\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a67cde5_974e436b","line":166,"updated":"2026-10-29 12:07:49.000000000","message":"Missing kid parameter?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":163,"context_line":"            await asyncio.sleep(10)"},{"line_number":164,"context_line":"            await self.deny_client(client, kid, \"I got you\")"},{"line_number":165,"context_line":"        elif username \u003d\u003d \u0027openvpn\u0027:"},{"line_number":166,"context_line":"            await self.send_pending_auth(client, webauth + \"https://community.openvpn.net\")"},{"line_number":167,"context_line":"            await self.send_client_auth(client, kid)"},{"line_number":168,"context_line":"        elif username \u003d\u003d \u0027googleext\u0027:"},{"line_number":169,"context_line":"            await self.send_pending_auth(client, kid,  \"WEB_AUTH:external:https://www.google.com/search?q\u003dexternal\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"954789e9_87780a59","line":166,"in_reply_to":"3a67cde5_974e436b","updated":"2026-10-29 17:08:14.000000000","message":"Acknowledged","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":282,"context_line":"    transport, protocol, finish_future \u003d await start_management_protocol(connect_data, ServerDemoProtocol)"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    management_version \u003d await protocol.management_ready()"},{"line_number":285,"context_line":"    print(f\"Management interface version: {management_version}\")"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"    await protocol.enable_log()"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7968b30e_dab41017","line":285,"updated":"2026-10-29 12:07:49.000000000","message":"Mix of logger and print, should be logger","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"6c1facf6225d61b20629a9caf9e569f721c15dfa","unresolved":false,"context_lines":[{"line_number":282,"context_line":"    transport, protocol, finish_future \u003d await start_management_protocol(connect_data, ServerDemoProtocol)"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    management_version \u003d await protocol.management_ready()"},{"line_number":285,"context_line":"    print(f\"Management interface version: {management_version}\")"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"    await protocol.enable_log()"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"21bea54c_a988959e","line":285,"in_reply_to":"7968b30e_dab41017","updated":"2026-11-03 14:02:23.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":true,"context_lines":[{"line_number":85,"context_line":"    logger.info(\"pyotp module not found. TOTP testing disabled\")"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"class ServerDemoConnectedClient(ConnectedClient):"},{"line_number":89,"context_line":"    # Remember the key-id that we authenticated"},{"line_number":90,"context_line":"    authenticated_kid: int \u003d -1"},{"line_number":91,"context_line":"    env: Dict[str, str] \u003d field(default_factory\u003ddict)"}],"source_content_type":"text/x-python","patch_set":8,"id":"7492ebe7_1c9b6b8c","line":88,"updated":"2026-11-04 09:49:56.000000000","message":"@dataclass is missing here. The parent being a dataclass is not enough, since subclass fields are only processed when the subclass is decorated too, so env is a dataclasses.Field object until it is assigned","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    logger.info(\"pyotp module not found. TOTP testing disabled\")"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"class ServerDemoConnectedClient(ConnectedClient):"},{"line_number":89,"context_line":"    # Remember the key-id that we authenticated"},{"line_number":90,"context_line":"    authenticated_kid: int \u003d -1"},{"line_number":91,"context_line":"    env: Dict[str, str] \u003d field(default_factory\u003ddict)"}],"source_content_type":"text/x-python","patch_set":8,"id":"b34259ca_767ddede","line":88,"in_reply_to":"7492ebe7_1c9b6b8c","updated":"2026-11-05 13:30:07.000000000","message":"I want to repeat that I find Python dataclasses are weird. Fixed.","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":true,"context_lines":[{"line_number":186,"context_line":"            await self.send_client_auth(client, kid)"},{"line_number":187,"context_line":"        elif username \u003d\u003d \"notify\":"},{"line_number":188,"context_line":"            await self.send_pending_auth(client, kid,"},{"line_number":189,"context_line":"                                         \"NOTIFY:Please wait for 23s to let the server think if it want to admit you\")"},{"line_number":190,"context_line":"            await asyncio.sleep(23)"},{"line_number":191,"context_line":"            await self.send_client_auth(client, kid)"},{"line_number":192,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":8,"id":"638f27c2_9411a7ec","line":189,"updated":"2026-11-04 09:49:56.000000000","message":"NOTIFY:: ? Currently the text is in the flags placeholder.. ?","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":186,"context_line":"            await self.send_client_auth(client, kid)"},{"line_number":187,"context_line":"        elif username \u003d\u003d \"notify\":"},{"line_number":188,"context_line":"            await self.send_pending_auth(client, kid,"},{"line_number":189,"context_line":"                                         \"NOTIFY:Please wait for 23s to let the server think if it want to admit you\")"},{"line_number":190,"context_line":"            await asyncio.sleep(23)"},{"line_number":191,"context_line":"            await self.send_client_auth(client, kid)"},{"line_number":192,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":8,"id":"c7251e61_379934aa","line":189,"in_reply_to":"638f27c2_9411a7ec","updated":"2026-11-05 13:30:07.000000000","message":"Done","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"}],"sample/management/omi_server_protocol.py":[{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":109,"context_line":"            self._pending_client_event_cid \u003d int(cid)"},{"line_number":110,"context_line":"            self._pending_client_event_kid \u003d int(kid)"},{"line_number":111,"context_line":"            self._pending_client_event_extra_args \u003d response"},{"line_number":112,"context_line":"        elif event in (\"ACC\", ):"},{"line_number":113,"context_line":"            cid, kid, acc_args \u003d args.split(\",\", 2)"},{"line_number":114,"context_line":"            self._trigger_client_event(event, int(cid), int(kid), None, acc_args)"},{"line_number":115,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"cf8bfd05_7dc5a8ab","line":112,"updated":"2026-10-29 12:07:49.000000000","message":"Why tuple?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":109,"context_line":"            self._pending_client_event_cid \u003d int(cid)"},{"line_number":110,"context_line":"            self._pending_client_event_kid \u003d int(kid)"},{"line_number":111,"context_line":"            self._pending_client_event_extra_args \u003d response"},{"line_number":112,"context_line":"        elif event in (\"ACC\", ):"},{"line_number":113,"context_line":"            cid, kid, acc_args \u003d args.split(\",\", 2)"},{"line_number":114,"context_line":"            self._trigger_client_event(event, int(cid), int(kid), None, acc_args)"},{"line_number":115,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"fbf1707e_02ccf031","line":112,"in_reply_to":"cf8bfd05_7dc5a8ab","updated":"2026-10-29 17:08:14.000000000","message":"Acknowledged","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":113,"context_line":"            cid, kid, acc_args \u003d args.split(\",\", 2)"},{"line_number":114,"context_line":"            self._trigger_client_event(event, int(cid), int(kid), None, acc_args)"},{"line_number":115,"context_line":"        else:"},{"line_number":116,"context_line":"            logger.info(f\"Client event {event} not handled. (message: {args!r})\")"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def client_event_ACC(self, client: ConnectedClient, kid, env, extra):"}],"source_content_type":"text/x-python","patch_set":5,"id":"f81ef4da_5a2ddb9e","line":116,"updated":"2026-10-29 12:07:49.000000000","message":"debug instead of info?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":false,"context_lines":[{"line_number":113,"context_line":"            cid, kid, acc_args \u003d args.split(\",\", 2)"},{"line_number":114,"context_line":"            self._trigger_client_event(event, int(cid), int(kid), None, acc_args)"},{"line_number":115,"context_line":"        else:"},{"line_number":116,"context_line":"            logger.info(f\"Client event {event} not handled. (message: {args!r})\")"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def client_event_ACC(self, client: ConnectedClient, kid, env, extra):"}],"source_content_type":"text/x-python","patch_set":5,"id":"55810b23_7fc77701","line":116,"in_reply_to":"9ba2d70b_740f5d9c","updated":"2026-11-04 09:49:56.000000000","message":"Acknowledged","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":true,"context_lines":[{"line_number":113,"context_line":"            cid, kid, acc_args \u003d args.split(\",\", 2)"},{"line_number":114,"context_line":"            self._trigger_client_event(event, int(cid), int(kid), None, acc_args)"},{"line_number":115,"context_line":"        else:"},{"line_number":116,"context_line":"            logger.info(f\"Client event {event} not handled. (message: {args!r})\")"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def client_event_ACC(self, client: ConnectedClient, kid, env, extra):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9ba2d70b_740f5d9c","line":116,"in_reply_to":"f81ef4da_5a2ddb9e","updated":"2026-10-29 17:08:14.000000000","message":"I think this should probably handle all event type and dispatch them so we should not really see this message.","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":124,"context_line":"                          f\"previous ACC message with protocol {client._protocol_acc_msg} was complete\")"},{"line_number":125,"context_line":"            client._partial_acc_msg \u003d \"\""},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        if client._partial_acc_msg and client._kid_acc_msg !\u003d kd:"},{"line_number":128,"context_line":"            logger.error(f\"Recieved ACC message with different key id {kid} before \""},{"line_number":129,"context_line":"                         f\"previous ACC message with key id {client._kid_acc_msg} \""},{"line_number":130,"context_line":"                         f\"was complete. This is currently not handled\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"5154b7de_1ea393e8","line":127,"updated":"2026-10-29 12:07:49.000000000","message":"kd? Should be probably kid","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":124,"context_line":"                          f\"previous ACC message with protocol {client._protocol_acc_msg} was complete\")"},{"line_number":125,"context_line":"            client._partial_acc_msg \u003d \"\""},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        if client._partial_acc_msg and client._kid_acc_msg !\u003d kd:"},{"line_number":128,"context_line":"            logger.error(f\"Recieved ACC message with different key id {kid} before \""},{"line_number":129,"context_line":"                         f\"previous ACC message with key id {client._kid_acc_msg} \""},{"line_number":130,"context_line":"                         f\"was complete. This is currently not handled\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f570585_c2eaf13c","line":127,"in_reply_to":"5154b7de_1ea393e8","updated":"2026-10-29 17:08:14.000000000","message":"Acknowledged","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":183,"context_line":"        handler_name \u003d f\"client_event_{event}\""},{"line_number":184,"context_line":"        if hasattr(self, handler_name):"},{"line_number":185,"context_line":"            handler \u003d getattr(self, handler_name)"},{"line_number":186,"context_line":"            handler(client, kid, env, extra)"},{"line_number":187,"context_line":"        else:"},{"line_number":188,"context_line":"            logger.info(f\"Client event {event} not handled. Method {handler_name} does not exist.\")"},{"line_number":189,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"aceff9f4_5467765b","line":186,"updated":"2026-10-29 12:07:49.000000000","message":"Exception in the handler will kill connection..? + hanlders should be async","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":183,"context_line":"        handler_name \u003d f\"client_event_{event}\""},{"line_number":184,"context_line":"        if hasattr(self, handler_name):"},{"line_number":185,"context_line":"            handler \u003d getattr(self, handler_name)"},{"line_number":186,"context_line":"            handler(client, kid, env, extra)"},{"line_number":187,"context_line":"        else:"},{"line_number":188,"context_line":"            logger.info(f\"Client event {event} not handled. Method {handler_name} does not exist.\")"},{"line_number":189,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"af33a899_967363b3","line":186,"in_reply_to":"aceff9f4_5467765b","updated":"2026-11-05 13:30:07.000000000","message":"the dispatch_to_handler now has an exception handler for this.","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":194,"context_line":"    def _remove_client(self, cid):"},{"line_number":195,"context_line":"        del self._connected_clients[cid]"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    async def get_client_status(self) -\u003e OmiCommandResult:"},{"line_number":198,"context_line":"        cmd_result \u003d self.queue_command(\"status 3\")"},{"line_number":199,"context_line":"        return await cmd_result"},{"line_number":200,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fe5164fe_c83c14c9","line":197,"updated":"2026-10-29 12:07:49.000000000","message":"Missing import for OmiCommandResult","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"decc4844e6df708d21e4b52f844c825380b6ab05","unresolved":false,"context_lines":[{"line_number":194,"context_line":"    def _remove_client(self, cid):"},{"line_number":195,"context_line":"        del self._connected_clients[cid]"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    async def get_client_status(self) -\u003e OmiCommandResult:"},{"line_number":198,"context_line":"        cmd_result \u003d self.queue_command(\"status 3\")"},{"line_number":199,"context_line":"        return await cmd_result"},{"line_number":200,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"150d9ff1_45f91dcf","line":197,"in_reply_to":"fe5164fe_c83c14c9","updated":"2026-10-29 17:08:14.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":true,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        try:"},{"line_number":142,"context_line":"            msg \u003d base64.decodebytes(b64msg.encode())"},{"line_number":143,"context_line":"            client._partial_acc_msg +\u003d msg.decode()"},{"line_number":144,"context_line":"            client._protocol_acc_msg \u003d protocol"},{"line_number":145,"context_line":"            client._kid_acc_msg \u003d kid"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"51463e88_fddb73c4","line":143,"updated":"2026-11-04 09:49:56.000000000","message":"Each fragment is decoded as UTF-8 separately, but messages are split at byte boundaries, so a multi-byte character crossing a fragment boundary makes decode() fail and the whole message gets lost. Am I right?","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        try:"},{"line_number":142,"context_line":"            msg \u003d base64.decodebytes(b64msg.encode())"},{"line_number":143,"context_line":"            client._partial_acc_msg +\u003d msg.decode()"},{"line_number":144,"context_line":"            client._protocol_acc_msg \u003d protocol"},{"line_number":145,"context_line":"            client._kid_acc_msg \u003d kid"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"170fed7e_c9ff3379","line":143,"in_reply_to":"51463e88_fddb73c4","updated":"2026-11-05 13:30:07.000000000","message":"Should be fixed now. Now every line is decoded as a whole .","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"}],"sample/management/omi_tools.py":[{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":24,"context_line":"import re"},{"line_number":25,"context_line":"from dataclasses import dataclass"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"from omi import OmiProtocol, ConnectionProperties"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"@dataclass"}],"source_content_type":"text/x-python","patch_set":5,"id":"2bde1279_8305f66b","line":27,"updated":"2026-10-29 12:07:49.000000000","message":"Like other files -  missing typing","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"6c1facf6225d61b20629a9caf9e569f721c15dfa","unresolved":false,"context_lines":[{"line_number":24,"context_line":"import re"},{"line_number":25,"context_line":"from dataclasses import dataclass"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"from omi import OmiProtocol, ConnectionProperties"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"@dataclass"}],"source_content_type":"text/x-python","patch_set":5,"id":"2246fa11_c3fd16cd","line":27,"in_reply_to":"2bde1279_8305f66b","updated":"2026-11-03 14:02:23.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"async def main():"},{"line_number":72,"context_line":"    transport, protocol, finish_future \u003d await start_management_protocol()"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    management_version \u003d await protocol.management_ready()"},{"line_number":75,"context_line":"    await protocol.enable_log()"}],"source_content_type":"text/x-python","patch_set":5,"id":"4ff2526c_d0e702af","line":72,"updated":"2026-10-29 12:07:49.000000000","message":"Missing arguments?","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"51383498866eab8d0314569d0d5373c1b57fcb42","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"async def main():"},{"line_number":72,"context_line":"    transport, protocol, finish_future \u003d await start_management_protocol()"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    management_version \u003d await protocol.management_ready()"},{"line_number":75,"context_line":"    await protocol.enable_log()"}],"source_content_type":"text/x-python","patch_set":5,"id":"d8ad69da_eb24024b","line":72,"in_reply_to":"4ff2526c_d0e702af","updated":"2026-11-03 14:22:04.000000000","message":"Removed that function. It is not used and not helpful.","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":84,"context_line":"    \"\"\""},{"line_number":85,"context_line":"    Example function to run a main function to be either using the"},{"line_number":86,"context_line":"    environment variable for the unix-script or to use. If the unix-script"},{"line_number":87,"context_line":"    environment are detected, the function will fork and run the main_func"},{"line_number":88,"context_line":"    with the ConnectData from the environment. If the environment variables"},{"line_number":89,"context_line":"    are not available, it will not fork will fall back to the connect_parameters"},{"line_number":90,"context_line":"    if present."}],"source_content_type":"text/x-python","patch_set":5,"id":"656a33be_cf3545b2","line":87,"range":{"start_line":87,"start_character":48,"end_line":87,"end_character":52},"updated":"2026-10-29 12:07:49.000000000","message":"asyncio.run !\u003d fork","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"51383498866eab8d0314569d0d5373c1b57fcb42","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    \"\"\""},{"line_number":85,"context_line":"    Example function to run a main function to be either using the"},{"line_number":86,"context_line":"    environment variable for the unix-script or to use. If the unix-script"},{"line_number":87,"context_line":"    environment are detected, the function will fork and run the main_func"},{"line_number":88,"context_line":"    with the ConnectData from the environment. If the environment variables"},{"line_number":89,"context_line":"    are not available, it will not fork will fall back to the connect_parameters"},{"line_number":90,"context_line":"    if present."}],"source_content_type":"text/x-python","patch_set":5,"id":"bb214e29_ca3253e4","line":87,"range":{"start_line":87,"start_character":48,"end_line":87,"end_character":52},"in_reply_to":"656a33be_cf3545b2","updated":"2026-11-03 14:22:04.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"0981f0f20a9e660584308aa307608a6691614a9d","unresolved":true,"context_lines":[{"line_number":96,"context_line":"    if unix_script_parameters:"},{"line_number":97,"context_line":"        asyncio.run(main_func(unix_script_parameters))"},{"line_number":98,"context_line":"    elif connect_parameters:"},{"line_number":99,"context_line":"        asyncio.run(main_func(connect_parameters))"},{"line_number":100,"context_line":"    else:"},{"line_number":101,"context_line":"        print(f\"Must be called via unix-script\")"},{"line_number":102,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"350a0bde_1627e9ac","line":99,"updated":"2026-10-29 12:07:49.000000000","message":"main() does not have any arguments","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"51383498866eab8d0314569d0d5373c1b57fcb42","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    if unix_script_parameters:"},{"line_number":97,"context_line":"        asyncio.run(main_func(unix_script_parameters))"},{"line_number":98,"context_line":"    elif connect_parameters:"},{"line_number":99,"context_line":"        asyncio.run(main_func(connect_parameters))"},{"line_number":100,"context_line":"    else:"},{"line_number":101,"context_line":"        print(f\"Must be called via unix-script\")"},{"line_number":102,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"744acf57_6c012592","line":99,"in_reply_to":"350a0bde_1627e9ac","updated":"2026-11-03 14:22:04.000000000","message":"Done","commit_id":"06dc42834374699b9e924830b95f5dded521fcd5"},{"author":{"_account_id":1000061,"name":"mateuszmazurek-pl","display_name":"Mateusz Mazurek","username":"mateuszmazurek-pl"},"change_message_id":"f7bb96244d2ce23fc5685b64b53890b87dd24b93","unresolved":true,"context_lines":[{"line_number":36,"context_line":"filt_ctrl_re \u003d re.compile(r\"[\\x00-\\x1f\\x7f]+\")"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def openvpn_escape(text):"},{"line_number":40,"context_line":"    \"\"\"Escapes a string to be safely used for OpenVPN inside"},{"line_number":41,"context_line":"    a quoted string"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"c568aa4d_1564c4c2","line":39,"updated":"2026-11-04 09:49:56.000000000","message":"missing typing","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"8478208972b8f2110f69184e8d87a5c7028b89cf","unresolved":false,"context_lines":[{"line_number":36,"context_line":"filt_ctrl_re \u003d re.compile(r\"[\\x00-\\x1f\\x7f]+\")"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def openvpn_escape(text):"},{"line_number":40,"context_line":"    \"\"\"Escapes a string to be safely used for OpenVPN inside"},{"line_number":41,"context_line":"    a quoted string"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"d2dd06b0_157fe3c7","line":39,"in_reply_to":"c568aa4d_1564c4c2","updated":"2026-11-05 13:30:07.000000000","message":"Done","commit_id":"5dd2d2b580e2e623384cc48c9afb28f83e1bfd92"}]}
