jquast / x84

A python telnet/ssh server for modern terminals. In spirit of classic software such as ami/x, teleguard, renegade, iniquity.

Home Page:http://x84.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new ssh connections cause bbs to be freeze up for a short period

jquast opened this issue · comments

as the on-connect negotiation occurs in a thread, esp. paramiko's, whose ssh negotiation consumes so much cpu that the mainthread handling the event loop is blocked (~1-2 seconds) -- so all other user's i/o is also similarly blocked.

The fix would be to delegate this work to a sub-process, though I'm not sure this is very easily done, as we've got to either safely and carefully pass off the socket (file handles) -- or do some additional abstraction. needs careful study.