Skip to content

Conversation

@osa1
Copy link
Owner

@osa1 osa1 commented Jun 28, 2020

Previously running $EDITOR would block tokio event loop, which causes
all kinds of panics, and timeouts in connections, see #185 as an
example.

We now run $EDITOR in a new thread, and stop reading stdin in the input
handler task during that. Also fixes termbox's suspend method, which
previously keps using tty after suspend.

See also module documentation of editor.

Fixes #185

@osa1 osa1 force-pushed the fix-C-x branch 3 times, most recently from 3b005d0 to 65e9079 Compare June 28, 2020 13:45
Previously running $EDITOR would block tokio event loop, which causes
all kinds of panics, and timeouts in connections, see #185 as an
example.

We now run $EDITOR in a new thread, and stop reading stdin in the input
handler task during that. Also fixes termbox's suspend method, which
previously keps using tty after suspend.

See also module documentation of `editor`.

Fixes #185
@osa1
Copy link
Owner Author

osa1 commented Jun 28, 2020

I tried this by running $EDITOR for about 5 minutes while being connected to 4 servers, and nothing broke! Merging.

@osa1 osa1 merged commit 802d799 into master Jun 28, 2020
osa1 added a commit that referenced this pull request Jun 28, 2020
@osa1 osa1 deleted the fix-C-x branch October 12, 2020 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic in pinger.rs

2 participants