Attention is currently required from: Arne Schwabe.

Name of user not set #1000061 has posted comments on this change by Arne 
Schwabe. ( https://gerrit.openvpn.net/c/openvpn/+/1859?usp=email )

Change subject: Add python scripts that demonstrate using the mangement 
interface
......................................................................


Patch Set 8:

(10 comments)

File sample/management/omi.py:

https://gerrit.openvpn.net/c/openvpn/+/1859/comment/e49d5ac3_334177a3?usp=email 
:
PS5, Line 109:     async def _send_loop(self):
> It will still trigger a backtrace but also the whole program will stop 
> working and that is somewhat  […]
Acknowledged


File sample/management/omi.py:

https://gerrit.openvpn.net/c/openvpn/+/1859/comment/db7868be_37f2abfa?usp=email 
:
PS8, Line 105:             logger.warn(f'Connection lost ({exc}). Shutting 
down.')
warn is deprecated, use warning


https://gerrit.openvpn.net/c/openvpn/+/1859/comment/4cc351c3_8c9f0627?usp=email 
:
PS8, Line 211:             self.recvBuffer = 
self.recvBuffer[len(OMI_PASSWORD_PROMPT) + 1:]
snake_case instead of camelCase


https://gerrit.openvpn.net/c/openvpn/+/1859/comment/94a9e184_80aa8788?usp=email 
:
PS8, Line 308:     def log_message(self, time, level, message):
misssing typing


File sample/management/omi_client_protocol.py:

https://gerrit.openvpn.net/c/openvpn/+/1859/comment/c15e0009_d75bfc9f?usp=email 
:
PS8, Line 38:     def __init__(self, finish_future, connect_data):
Missing typing


File sample/management/omi_server_demo.py:

https://gerrit.openvpn.net/c/openvpn/+/1859/comment/7492ebe7_1c9b6b8c?usp=email 
:
PS8, Line 88: class ServerDemoConnectedClient(ConnectedClient):
@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


https://gerrit.openvpn.net/c/openvpn/+/1859/comment/638f27c2_9411a7ec?usp=email 
:
PS8, Line 189:                                          "NOTIFY:Please wait for 
23s to let the server think if it want to admit you")
NOTIFY:: ? Currently the text is in the flags placeholder.. ?


File sample/management/omi_server_protocol.py:

https://gerrit.openvpn.net/c/openvpn/+/1859/comment/55810b23_7fc77701?usp=email 
:
PS5, Line 116:             logger.info(f"Client event {event} not handled. 
(message: {args!r})")
> I think this should probably handle all event type and dispatch them so we 
> should not really see thi […]
Acknowledged


File sample/management/omi_server_protocol.py:

https://gerrit.openvpn.net/c/openvpn/+/1859/comment/51463e88_fddb73c4?usp=email 
:
PS8, Line 143:             client._partial_acc_msg += msg.decode()
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?


File sample/management/omi_tools.py:

https://gerrit.openvpn.net/c/openvpn/+/1859/comment/c568aa4d_1564c4c2?usp=email 
:
PS8, Line 39: def openvpn_escape(text):
missing typing



--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/1859?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib09bafabf612e9501ea757647c86a450c73228a5
Gerrit-Change-Number: 1859
Gerrit-PatchSet: 8
Gerrit-Owner: Arne Schwabe <[email protected]>
Gerrit-CC: Name of user not set #1000061
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Comment-Date: Wed, 04 Nov 2026 09:49:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Name of user not set #1000061
Comment-In-Reply-To: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to