mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-13 23:03:09 +00:00
get rid of "socket.send() raised exception" messages
This commit is contained in:
@@ -2143,6 +2143,11 @@ def setup_files_limit():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def setup_asyncio():
|
||||||
|
# get rid of annoying "socket.send() raised exception" log messages
|
||||||
|
asyncio.constants.LOG_THRESHOLD_FOR_CONNLOST_WRITES = 100
|
||||||
|
|
||||||
|
|
||||||
def setup_signals():
|
def setup_signals():
|
||||||
if hasattr(signal, 'SIGUSR1'):
|
if hasattr(signal, 'SIGUSR1'):
|
||||||
def debug_signal(signum, frame):
|
def debug_signal(signum, frame):
|
||||||
@@ -2276,6 +2281,7 @@ def main():
|
|||||||
init_ip_info()
|
init_ip_info()
|
||||||
print_tg_info()
|
print_tg_info()
|
||||||
|
|
||||||
|
setup_asyncio()
|
||||||
setup_files_limit()
|
setup_files_limit()
|
||||||
setup_signals()
|
setup_signals()
|
||||||
try_setup_uvloop()
|
try_setup_uvloop()
|
||||||
|
|||||||
Reference in New Issue
Block a user