fix: handle EOF in input polling, add SSL cert path, reduce concurrent workers, and correct routing filter logic

This commit is contained in:
baoweise-bot
2026-06-07 12:19:04 +08:00
parent 2db62f9b9e
commit 2ee863b72f
2 changed files with 11 additions and 7 deletions
+3 -2
View File
@@ -760,13 +760,14 @@ def getch():
try:
old_settings = termios.tcgetattr(fd)
except termios.error:
return sys.stdin.read(1)
ch = sys.stdin.read(1)
return ch if ch else "q"
try:
tty.setraw(sys.stdin.fileno())
ch = sys.stdin.read(1)
finally:
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
return ch
return ch if ch else "q"
def getch_timeout(timeout=1.0):
import select