mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
set timeout to 1 minute
This commit is contained in:
parent
a35a945b0b
commit
958a3fa5b6
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ class TcpStratumInterface(Interface):
|
|||
|
||||
def init_socket(self):
|
||||
self.s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
|
||||
self.s.settimeout(5*60)
|
||||
self.s.settimeout(60)
|
||||
self.s.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
|
||||
try:
|
||||
self.s.connect(( self.host, self.port))
|
||||
|
|
Loading…
Add table
Reference in a new issue