summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordongjuan <dong.juan1@zte.com.cn>2017-11-09 14:46:36 +0800
committerOle Trøan <otroan@employees.org>2017-11-20 08:51:03 +0000
commit84937522e006a7efb806863172eea9f9fa20dc26 (patch)
tree8a5272f98cd667e9aec20883d7f611f508c22ee7
parent42324ad3174903b085c80f9c853c4db068fe6b38 (diff)
nowhere to set read_timeout
Change-Id: I8a16f2ba884451ca8028adb91383d57fdf1d9d50 Signed-off-by: dongjuan <dong.juan1@zte.com.cn>
-rw-r--r--src/vpp-api/python/vpp_papi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp-api/python/vpp_papi.py b/src/vpp-api/python/vpp_papi.py
index e7e1707c435..2f4773ad8a5 100644
--- a/src/vpp-api/python/vpp_papi.py
+++ b/src/vpp-api/python/vpp_papi.py
@@ -112,7 +112,7 @@ class VPP():
these messages in a background thread.
"""
def __init__(self, apifiles=None, testmode=False, async_thread=True,
- logger=logging.getLogger('vpp_papi'), loglevel='debug'):
+ logger=logging.getLogger('vpp_papi'), loglevel='debug', read_timeout=0):
"""Create a VPP API object.
apifiles is a list of files containing API
@@ -134,7 +134,7 @@ class VPP():
self.apifiles = []
self.event_callback = None
self.message_queue = queue.Queue()
- self.read_timeout = 0
+ self.read_timeout = read_timeout
self.vpp_api = vpp_api
if async_thread:
self.event_thread = threading.Thread(