Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Default the client timeout to None (#78)
Browse files Browse the repository at this point in the history
* Default the client timeout to None

If we timeout on the client we do not retry. In most instances the
client side timeout is not necessary and we can rely on the server
side timeout and our retry mechanism.

* Bumping version and adding CHANGES
  • Loading branch information
smillet15 authored and Axik committed May 9, 2017
1 parent 601c553 commit 6d09567
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.10.2 (2017 May 9)
================
* Set default timeout on server response to infinity.

1.10.1 (2017 April 27)
================

Expand Down
2 changes: 1 addition & 1 deletion datarobot_batch_scoring/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.10.1'
__version__ = '1.10.2'
2 changes: 1 addition & 1 deletion datarobot_batch_scoring/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def parse_args(argv, standalone=False):

conn_gr = parser.add_argument_group('Connection control')
conn_gr.add_argument('--timeout', type=int,
default=30,
default=None,
help='The timeout for each post request. '
'(default: %(default)r)')
conn_gr.add_argument('--n_samples', type=int,
Expand Down

0 comments on commit 6d09567

Please sign in to comment.