-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: Do not try to connect via postcard to proc-macro-srv #21133
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
Conversation
|
cc @Shourya742 seems like if we try to connect to a proc-macro server that does not support postcard we will just hang on it now crashing as expected, we'll need to figure out a different approach here. |
I guess I know the reason for this, the json framing uses fn read<'a, R: BufRead>(
inp: &mut R,
buf: &'a mut String,
) -> io::Result<Option<&'a mut String>> {
loop {
buf.clear();
inp.read_line(buf)?;
buf.pop(); // Remove trailing '\n'When we intialize the client with postcard, we don't write new line as the delimitor. I’ll send a patch. |
f59ac38 to
33dbaa9
Compare
|
So looking at things, the |
I was thinking that if we don’t receive a response within a specified time, we should abort the process and fall back. |
adccc76 to
3740979
Compare
|
that would work too and is definitely something we should implement. I'll revert some parts here for now to unblock the pre-releases. And I'll also include #21132. It was a mistake not naming both of these flags legacy i think since we do want to replace the protocol entirely at some point. |
3740979 to
831714e
Compare
831714e to
268df15
Compare
Shourya742
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
Closes #21130