mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-10-21 19:18:48 +00:00
TODOs
This commit is contained in:
1 parent
1b8671b3d3
commit
d2b6c450eb
2 files changed
+7
No files matched your search
@@ -14,11 +14,14 @@ from .utils import ws_domains, DC_DEFAULT_IPS
|
||||
|
||||
log = logging.getLogger('tg-mtproto-proxy')
|
||||
|
||||
# TODO: domains handling is completely broken: wrong is_media flag causes tcp_reset,
|
||||
# but initial connection is still established no matter what is is_media flag is set to
|
||||
class _WsPool:
|
||||
WS_POOL_MAX_AGE = 120.0
|
||||
WS_POOL_CHECK_INTERVAL = 5.0
|
||||
REFILL_BACKOFF_INITIAL = 60.0
|
||||
REFILL_BACKOFF_MAX = 3600.0
|
||||
# TODO: Lower refill backoff timer
|
||||
|
||||
def __init__(self):
|
||||
self._idle: Dict[Tuple[int, bool], deque] = {}
|
||||
|
||||
Reference in new issue
Block a user