-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try to workaround race condition for @ run #7443
Try to workaround race condition for @ run #7443
Conversation
…chine kitty is running on and get its output Fixes #7429
Rather than mess with the loop in socket-io I chose to just run the |
This definitely looks better. However, after some tests, it seems that I've tested |
I'm on a remote ssh connection with kitty domain socket forwarding, which makes it easy to reproduce. I guess you can simply add time.sleep(...) before returning |
That does not reproduce it. I dont see why it would either. add_timer log_error("%s", msg) at the top of send_response_to_peer() that will show you everything that |
Interesting. Both good and bad cases print the same event log which is indeed in correct order:
I guess something is wrong at the kitten side. |
You can add forward_stdio yes to kitty.conf then in socket_io.go you can do import "kitty/tools/tty" and then use tty.DebugPrintln(...) in simple_socket_io() to see whats going on. The output of the prints |
https://github.com/amosbird/kitty/blob/master/tools/cmd/at/socket_io.go#L61 Here bad cases read two responses in one |
Should be fixed by: 703068f |
Or actually no maybe not quite, the parser can call handledcs multiple times in one read |
Next commit fixes it, I hope. |
Unfortunately, |
a9924d2 works! Thank you! |
Address 38fed8b#commitcomment-142137229