summaryrefslogtreecommitdiffstats
path: root/src/vpp-api
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2021-03-15 21:30:15 +0100
committerOle Tr�an <otroan@employees.org>2021-03-16 09:33:00 +0000
commit400ce717ac043ceec404103dbaa87dd17d92feb7 (patch)
tree97266680e10f23ef1fb0f73581a8cff4c0e89cb4 /src/vpp-api
parent3a5bd85476311d4ad2b0cbbca3f98d53f13a3afb (diff)
api: allow specifying no timeout
This functionality is used in make test when DEBUG=gdb is used. Type: fix Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I1339e6460aa624a3bcb4b03db46991590e126f92
Diffstat (limited to 'src/vpp-api')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_transport_socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
index b0861057e72..c82b8c365a1 100644
--- a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
+++ b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
@@ -23,7 +23,7 @@ class VppTransport:
def __init__(self, parent, read_timeout, server_address):
self.connected = False
- self.read_timeout = read_timeout if read_timeout > 0 else 1
+ self.read_timeout = read_timeout if read_timeout > 0 else None
self.parent = parent
self.server_address = server_address
self.header = struct.Struct('>QII')