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

$_COOKIE serialization #14

Open
rayrutjes opened this issue Jul 20, 2016 · 0 comments
Open

$_COOKIE serialization #14

rayrutjes opened this issue Jul 20, 2016 · 0 comments

Comments

@rayrutjes
Copy link

I am using your class to implement a queue which will run one job per process and then loop on itself by making a remote non blocking call.

I was facing an issue that was very painful to debug because Apache was simply dropping the request with the following message:
POST /wp-admin/admin-post.php HTTP/1.1" 400 306 "-" "-" "Size of a request header field exceeds server limit.<br />\n<pre>\ncookie\n</pre>/n

I our case we forward cookies from one async call to another. The fact that you serialize the $_COOKIE value that are arrays, https://github.com/techcrunch/wp-async-task/blob/master/wp-async-task.php#L132, results in a header size that keeps increasing:
%5C%5C%5C%5C%5C%5C%5C%5C%5C%5C%5C%5C...

Any reason you added this serialization? Does not seem to be handled natively by WP, right?

Do you think of a serialization that would scale in our case? For now we just ignore non string values, which is sufficient.

Great lib, keep it up!

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

No branches or pull requests

1 participant