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.
|
undo information for this many blocks in levelDB.
|
||||||
Default is 200.
|
Default is 200.
|
||||||
HOST - the host that the TCP and SSL servers will use. Defaults to
|
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
|
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
|
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.
|
If set, SSL_CERTFILE and SSL_KEYFILE must be filesystem paths.
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import codecs
|
import codecs
|
||||||
import json
|
import json
|
||||||
|
import socket
|
||||||
import ssl
|
import ssl
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
@ -514,7 +515,7 @@ class ServerManager(util.LoggedClass):
|
|||||||
if session.is_closing():
|
if session.is_closing():
|
||||||
if session.stop <= shutdown_cutoff and session.socket:
|
if session.stop <= shutdown_cutoff and session.socket:
|
||||||
# Should trigger a call to connection_lost very soon
|
# Should trigger a call to connection_lost very soon
|
||||||
self.socket.shutdown(socket.SHUT_RDWR)
|
session.socket.shutdown(socket.SHUT_RDWR)
|
||||||
else:
|
else:
|
||||||
if session.last_recv < stale_cutoff:
|
if session.last_recv < stale_cutoff:
|
||||||
self.close_session(session)
|
self.close_session(session)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user