Skip to content

Commit

Permalink
修改socket超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjie0203 authored Aug 18, 2019
1 parent 9603991 commit 90dcc81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def del_servers():
def thread_db(obj):
import socket
global db_instance
timeout = 60
timeout = 60*2
socket.setdefaulttimeout(timeout)
last_rows = []
db_instance = obj()
Expand Down

0 comments on commit 90dcc81

Please sign in to comment.