Skip to content

Conversation

@bryancall
Copy link
Contributor

I was seeing about 20 of these warning per second in production on 8.0.0 RC0

@bryancall bryancall added this to the 9.0.0 milestone Sep 10, 2018
@bryancall bryancall self-assigned this Sep 10, 2018
@bryancall bryancall requested a review from zizhong September 10, 2018 22:31
shinrich
shinrich previously approved these changes Sep 10, 2018
if (p->buffer_start->read_avail() > HttpConfig::m_master.post_copy_size) {
Warning("http_redirect, [HttpTunnel::producer_handler] post exceeds buffer limit, buffer_avail=%" PRId64 " limit=%" PRId64 "",
p->buffer_start->read_avail(), HttpConfig::m_master.post_copy_size);
Debug("http_redirect", "[HttpTunnel::producer_handler] post exceeds buffer limit, buffer_avail=%" PRId64 " limit=%" PRId64 "",
Copy link
Member

Choose a reason for hiding this comment

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

If this happened, the post request will fail. Are we sure this is something we can ignore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zizhong Is the post failing completely or will it just fail to do a follow redirect?

Copy link
Member

Choose a reason for hiding this comment

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

In common cases, it fails only for the redirect. When post buffer(PR#2335) enabled, it will fail for the original too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is not good for the common case, with buffering enabled. What change made it fail when post buffer is enabled? I don't believe this is how it worked before.

Copy link
Member

Choose a reason for hiding this comment

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

that is #2335, which utilizes the same buffer logic.

@bryancall
Copy link
Contributor Author

I am going to keep the warnings since the POSTs fail to the client. It would be good to have a feature to disable buffering of POSTs for follow redirect.

@bryancall bryancall closed this Sep 11, 2018
@zwoop zwoop removed this from the 9.0.0 milestone Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants