-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Buffer overflow when using reverse proxy via HttpService::Proxy #519
Comments
I think the problem is that |
possible fix:
|
Try this:
|
It solved the buffer overflow, but the body was incorrect for
here is the data forwarded by libhv:
for |
I know why. When the http header is received, a proxy connection will be made. If it is connected immediately, req.body will be empty at this time, but DumpBody will automatically generate the body based on the Content-Type header, resulting in this kind of bad case, your fix + my fix should be a relatively complete solution. Can you submit a PR to fix it? |
AddressSanitizer log:
The text was updated successfully, but these errors were encountered: