From: Ondrej Lichtner olichtne@redhat.com
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 --- lnst/Common/ConnectionHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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: