daniel has posted comments on this change. ( 
https://gerrit.osmocom.org/c/python/osmo-python-tests/+/14545 )

Change subject: osmo_trap2cgi.py: Don't recurse in ctrl_client()
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/14545/1/scripts/osmo_trap2cgi.py
File scripts/osmo_trap2cgi.py:

https://gerrit.osmocom.org/#/c/14545/1/scripts/osmo_trap2cgi.py@211
PS1, Line 211:         await ctrl_client(proxy, reader, writer)
> I don't know how this framework works, but are you sure keeping ctrl_client 
> in a while True loop is  […]
We're more or less in the same boat then. :-)
As far as I can tell conn_client (re-)connects - see also line 215 - to the 
ctrl port and ctrl_client reads the traps in an infinite loop (or before in an 
infinite tail-recursion). If anything goes wrong in the exception handlers 
conn_client is called again, which re-establishes the connection.



--
To view, visit https://gerrit.osmocom.org/c/python/osmo-python-tests/+/14545
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Change-Id: Ic909e371771f3056cb87e18793fd4225ffb90a2c
Gerrit-Change-Number: 14545
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillm...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillm...@sysmocom.de>
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-Comment-Date: Wed, 19 Jun 2019 15:49:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pes...@sysmocom.de>
Gerrit-MessageType: comment

Reply via email to