Skip to content

Commit 7104f93

Browse files
Ole Troaniawells
andcommitted
Python API: Missing locking of results data structure.
The wrong assumption that the GIL combined with CPython's "mostly" thread safe assurance does not hold. The combination of a slow event handler for notification and calling the API at the same time let to contention on the results data structure. Added suitable locking. Also added an atexit() to attempt a VPP disconnect on shutdown. Also: lots more comments, docstrings, duplicated code removed. Some of the problem here was a disagreement between caller and author as to how the API should be used; the comments should help. Change-Id: I0cb7d0026db660ec141425c5ad474f14bacea36e Signed-off-by: Ole Troan <ot@cisco.com> Co-Authored-By: Ian Wells <iawells@cisco.com> Signed-off-by: Ole Troan <ot@cisco.com>
1 parent 12713c7 commit 7104f93

File tree

1 file changed

+219
-84
lines changed

1 file changed

+219
-84
lines changed

0 commit comments

Comments
 (0)