Skip to content

Commit 6dca464

Browse files
authored
Merge pull request #11 from visenze/feature/timeout
[ONLINE-534],[PS-751] update timeout
2 parents 6f63f04 + 879e19e commit 6dca464

5 files changed

Lines changed: 14 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
generate_fixtures.py
2+
.idea/
23

34
*.py[cod]
45

HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
33
Release History
44
---------------
5+
0.5.1 (2020-04-20)
6+
++++++++++++++++++
7+
8+
**Features**
9+
10+
- Change default timeout form 60s to 30s
11+
512

613
0.4.5 (2017-11-14)
714
++++++++++++++++++

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
setup(
3030
name='visearch',
31-
version='0.5.0',
31+
version='0.5.1',
3232
description="ViSearch Python SDK",
3333
long_description=readme + '\n\n' + history,
3434
long_description_content_type="text/markdown",

visearch/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
__author__ = 'Han Xiaogang'
4-
__email__ = 'xganghan@gmail.com'
5-
__version__ = '0.4.5'
3+
__author__ = 'Hung'
4+
__email__ = 'hung@visenze.com'
5+
__version__ = '0.5.1'

visearch/bind.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ def bind_method(api, path, method, parameters=None, data=None, files=None):
9191
data=data,
9292
files=files,
9393
auth=api.auth_info,
94-
timeout=10 * 60,
94+
timeout=30,
9595
headers=headers)
9696
elif method.upper() == 'GET':
9797
resp = requests.get(
9898
api.host + path,
9999
params=parameters,
100100
files=files,
101101
auth=api.auth_info,
102-
timeout=10 * 60,
102+
timeout=30,
103103
headers=headers)
104104
else:
105105
raise ViSearchClientError('unsupported http method')

0 commit comments

Comments
 (0)