Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

send_out_headers_and_body() return code is not checked #1465

Closed
mxwell opened this issue Sep 2, 2017 · 2 comments
Closed

send_out_headers_and_body() return code is not checked #1465

mxwell opened this issue Sep 2, 2017 · 2 comments

Comments

@mxwell
Copy link

mxwell commented Sep 2, 2017

Return value of the method send_out_headers_and_body(..) is not checked, even though it could return an error code:

https://github.com/pagespeed/ngx_pagespeed/blob/65761a2393cc62197129156eb7d2c9374d1aacfe/src/ngx_pagespeed.cc#L2707

I am not sure if it is a real issue, it just looks suspicious to me.

@oschaaf
Copy link
Member

oschaaf commented Sep 2, 2017

Good catch. I think that this actually was discussed earlier in a private email thread a long time ago, in the context of a h/2 related bug we were looking in to at the time. The ignores return value was assessed to unrelated at the time, and subsequently forgotten. But I think it would still make sense to properly pass through errors here. I'll take a look at that.

@oschaaf
Copy link
Member

oschaaf commented Sep 11, 2017

Fixed in #1468

@oschaaf oschaaf closed this as completed Sep 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants