Skip to content
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

ulsp: socket reading fix #453

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

mstreeter10
Copy link
Contributor

Fixes unhandled case where client hasn't finished sending data for body of a header + body pair.

request_body := move(len)
msg := tab(0)
}
until *request_body = len do {
Copy link
Member

@Jafaral Jafaral May 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has the potential of running infinitely. I recommend adding a select() with a 5 seconds timeout, maybe in a loop with 1 second increment, after that, consider that a malformed msg and move on.

Signed-off-by: Maximus Streeter <[email protected]>
@Jafaral Jafaral merged commit 4a74fb0 into uniconproject:master May 3, 2024
22 checks passed
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.

2 participants