Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions SoftLayer/transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry

from SoftLayer import consts
from SoftLayer import exceptions
Expand Down Expand Up @@ -50,8 +49,7 @@ def get_session(user_agent):
'Content-Type': 'application/json',
'User-Agent': user_agent,
})
retry = Retry(connect=3, backoff_factor=3)
adapter = HTTPAdapter(max_retries=retry)
adapter = HTTPAdapter()
client.mount('https://', adapter)
return client

Expand Down