-
Notifications
You must be signed in to change notification settings - Fork 540
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
Request headers may potentially not have a proper ending (\r\n\r\n
).
#1981
Labels
bug
Something isn't working
Comments
undici does the right thing here, but I guess it wouldn't hurt to send them at the same time. |
ronag
added a commit
that referenced
this issue
Mar 2, 2023
Ensures that headers and chunk len + body can be passed in same packet. Fixes: #1981
ronag
added a commit
that referenced
this issue
Mar 2, 2023
Ensures that headers and chunk len + body can be passed in same packet. Fixes: #1981
ronag
added a commit
that referenced
this issue
Mar 2, 2023
Ensures that headers and chunk len + body can be passed in same packet. Fixes: #1981
metcoder95
pushed a commit
to metcoder95/undici
that referenced
this issue
Jul 21, 2023
Ensures that headers and chunk len + body can be passed in same packet. Fixes: nodejs#1981
crysmags
pushed a commit
to crysmags/undici
that referenced
this issue
Feb 27, 2024
Ensures that headers and chunk len + body can be passed in same packet. Fixes: nodejs#1981
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
It's possible that proper ending of request headers (
\r\n\r\n
) will be not send immediately together with headers chunk due to:👉🏻 https://github.com/nodejs/undici/blob/main/lib/client.js#L1677
Potential fix:
Reproducible By
It's quite random and depends on Socket/system behaviours - "Sometimes" 😉
👀 👉🏻 Additional context
Expected Behavior
Chunk containing request headers always contains proper headers ending -
\r\n\r\n
.Additional context
Related issue: uNetworking/uWebSockets.js#879
In this issue I have tried to emulate behaviour of
undici
- especially: uNetworking/uWebSockets.js#879 (comment)The text was updated successfully, but these errors were encountered: