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

Commit

Permalink
increase session default max_retries (3 -> 30)
Browse files Browse the repository at this point in the history
  • Loading branch information
youfou committed Apr 9, 2017
1 parent a3f6ef0 commit cd664c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wxpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def reply_my_friend(msg):
from .utils import dont_raise_response_error, embed, ensure_one, mutual_friends

__title__ = 'wxpy'
__version__ = '0.3.4.1'
__version__ = '0.3.5'
__author__ = 'Youfou'
__license__ = 'MIT'
__copyright__ = '2017, Youfou'
Expand Down
2 changes: 1 addition & 1 deletion wxpy/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def get_receiver(receiver=None):
raise TypeError('expected Chat, Bot, str, True or None')


def enhance_connection(session, pool_connections=30, pool_maxsize=30, max_retries=3):
def enhance_connection(session, pool_connections=30, pool_maxsize=30, max_retries=30):
"""
增强 requests.Session 对象的网络连接性能
Expand Down

0 comments on commit cd664c0

Please sign in to comment.