Fix cut-n-pasteo
This commit is contained in:
parent
5b24516a1c
commit
6fcb8b0574
@ -26,7 +26,8 @@ REORG_LIMIT - maximum number of blocks to be able to handle in a chain
|
||||
undo information for this many blocks in levelDB.
|
||||
Default is 200.
|
||||
HOST - the host that the TCP and SSL servers will use. Defaults to
|
||||
localhost.
|
||||
localhost. Set to blank to listen on all addresses (IPv4
|
||||
and IPv6).
|
||||
TCP_PORT - if set will serve Electrum TCP clients on that HOST:TCP_PORT
|
||||
SSL_PORT - if set will serve Electrum SSL clients on that HOST:SSL_PORT
|
||||
If set, SSL_CERTFILE and SSL_KEYFILE must be filesystem paths.
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
import asyncio
|
||||
import codecs
|
||||
import json
|
||||
import socket
|
||||
import ssl
|
||||
import time
|
||||
import traceback
|
||||
@ -514,7 +515,7 @@ class ServerManager(util.LoggedClass):
|
||||
if session.is_closing():
|
||||
if session.stop <= shutdown_cutoff and session.socket:
|
||||
# Should trigger a call to connection_lost very soon
|
||||
self.socket.shutdown(socket.SHUT_RDWR)
|
||||
session.socket.shutdown(socket.SHUT_RDWR)
|
||||
else:
|
||||
if session.last_recv < stale_cutoff:
|
||||
self.close_session(session)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user