Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
b7fcd0f5
Commit
b7fcd0f5
authored
Dec 11, 2013
by
Stavros Sachtouris
Browse files
Add self.poolsize in kamaki.clients.Client
parent
5fcc3f7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/clients/__init__.py
View file @
b7fcd0f5
...
...
@@ -340,6 +340,7 @@ class Client(Logged):
self
.
base_url
=
base_url
self
.
token
=
token
self
.
headers
,
self
.
params
=
dict
(),
dict
()
self
.
poolsize
=
None
def
_init_thread_limit
(
self
,
limit
=
1
):
assert
isinstance
(
limit
,
int
)
and
limit
>
0
,
'Thread limit not a +int'
...
...
@@ -457,7 +458,9 @@ class Client(Logged):
data
=
data
,
headers
=
headers
,
params
=
params
)
# req.log()
r
=
ResponseManager
(
req
,
connection_retry_limit
=
self
.
CONNECTION_RETRY_LIMIT
)
req
,
poolsize
=
self
.
poolsize
,
connection_retry_limit
=
self
.
CONNECTION_RETRY_LIMIT
)
r
.
LOG_TOKEN
,
r
.
LOG_DATA
,
r
.
LOG_PID
=
(
self
.
LOG_TOKEN
,
self
.
LOG_DATA
,
self
.
LOG_PID
)
r
.
_token
=
headers
[
'X-Auth-Token'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment