]> git.ipfire.org Git - thirdparty/strongswan.git/commit
vici: Check for closed connection in Python bindings
authorWeilu Jia <optix2000@teitoku.net>
Tue, 13 Dec 2016 02:17:10 +0000 (18:17 -0800)
committerTobias Brunner <tobias@strongswan.org>
Wed, 14 Dec 2016 10:35:31 +0000 (11:35 +0100)
commit351179d4dc96d20c1b76740c87e9b0355bed8222
treef428385d6022ff3cc3d1656482b17a68d3c1a6b9
parent564a19967477adb60e018609d3ab76c554705f08
vici: Check for closed connection in Python bindings

The Python VICI library does not check if the socket is closed.
If the daemon closes the connection, _recvall() spins forever.

Closes strongswan/strongswan#56.
src/libcharon/plugins/vici/python/vici/protocol.py