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
php 5.3.9 socket reads take minutes (instead of < seconds) #88
Comments
Also, connecting to the beanstalkd service via telnet has no issues with write/read. The issue only occurs from PHP 5.3.9. |
References: |
A packet trace will tell you when the response was sent to the client. In that case, the PHP developers will probably want a reduced test Otherwise, it is a bug in beanstalkd, and I'd really like to see the |
Using
Output from my test code
This was on a local test, however a remote test (Server A running |
Thanks. Unfortunately, since this isn't a trace of beanstalkd's traffic, |
Ah, I will get on to that shortly then. |
php 5.3.9 socket test (above code) to beanstalkd https://gist.github.com/1660581 Hangs on the read line, but all of the packets in the gist appear immediately. Note that there is a checksum error on line 23 |
Ok, yeah, the timestamps in the gist suggest that beanstalkd
Interesting. Does that happen consistently? |
Eventually the read works, in my environment it takes 2 minutes. I'm not sure if it is "resent" however. There's been an update to the PHP issue: https://bugs.php.net/bug.php?id=60817 I'm going to see if I can try their snapshot, but we've been using packages so far to install PHP. I can run more tests to see if the checksum is consistent. |
I've tested this with the fix/patch for the PHP bug mentioned earlier. I can confirm that it works. As the PHP ticket has been closed and this probably originally never was a beanstalkd bug I think it's safe to close this ticket. Except you want to further investigate into the checksum issue (that might deserve a separate ticket). Thanks everybody for helping to track this down and providing these nice test cases. beanstalkd is great! |
Thanks for confirming this. Sounds good. (A wrong checksum is not too concerning; it's not beanstalkd's job |
Last week we had a hiccup in our system as our PHP updated to 5.3.9 from the IUS testing repository (we've since disabled the testing repo and put it back to 5.3.8)
However 5.3.9 is now considered stable, and so we've upgraded again (automatically as we use puppet) and IUS have removed 5.3.8 from their repository.
When performing socket connections in PHP to talk to beanstalkd, reads take (in my tests) 2 minutes to complete, when they should be somewhat instant. The following code can be used to test:
My output for this:
Note that it did come back with the expected response, but it took 2 minutes to do so.
If you switch the $socket line to use google, the result is instant.
The text was updated successfully, but these errors were encountered: