kr/beanstalkd — Issue #88: php 5.3.9 socket reads take minutes (instead of < seconds)
Author: seguer
Created: 2012-01-18 23:42:02+00:00
State: open

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:

``` tcp_socket/ssl
[mode] => r+
[unread_bytes] => 0
[seekable] =>
[timed_out] =>
[blocked] => 1
[eof] =>
)
Wed, 18 Jan 2012 15:36:01 -0800
OK 864
Wed, 18 Jan 2012 15:38:01 -0800
```

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.