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

Add error logging in on_body #895

Merged
merged 1 commit into from
May 6, 2016

Conversation

deweerdt
Copy link
Member

@deweerdt deweerdt commented May 5, 2016

Log and error when hitting a non eos error in proxy.c:on_body()

@@ -312,7 +312,9 @@ static int on_body(h2o_http1client_t *client, const char *errstr)
/* FIXME should there be a way to notify error downstream? */

if (errstr != NULL) {
/* detach the content */
if (errstr != h2o_http1client_error_is_eos) {
h2o_req_log_error(req, "lib/core/proxy.c", "%s", errstr);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe req should be self->src_req?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, of course, it's fixed now. Thanks!

Log and error when hitting a non eos error in `proxy.c:on_body()`
@deweerdt deweerdt force-pushed the deweerdt/error_logging_proxy_on_body branch from 96fc178 to 2aaea00 Compare May 5, 2016 21:44
@kazuho kazuho merged commit 9b757a9 into h2o:master May 6, 2016
@kazuho
Copy link
Member

kazuho commented May 6, 2016

Thank you for the PR!

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