commit d5c0b7a632252ddda47b3823d6a02098a95e2f4a Author: Ondrej Lichtner olichtne@redhat.com Date: Wed Aug 13 18:34:50 2014 +0200
ConnectioHandler: set select timeout to 0
Setting the select timeout to 0 makes the call non-blocking which is required if we want to use more than one connection handler. This will be usefull for implementing network namespace support.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Common/ConnectionHandler.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/lnst/Common/ConnectionHandler.py b/lnst/Common/ConnectionHandler.py index 04eef86..042e78a 100644 --- a/lnst/Common/ConnectionHandler.py +++ b/lnst/Common/ConnectionHandler.py @@ -72,7 +72,7 @@ class ConnectionHandler(object): def check_connections(self): requests = [] try: - rl, wl, xl = select.select(self._connections.values(), [], []) + rl, wl, xl = select.select(self._connections.values(), [], [], 0) except select.error: return [] for f in rl:
lnst-developers@lists.fedorahosted.org