Php Client Hangs

5 views
Skip to first unread message

Jakkie3000

unread,
Apr 19, 2009, 5:18:11 PM4/19/09
to beanstalk-talk
Hi All,

Just have downloaded client library from sourceforge.
I am testing with example.php which came with library, unfortunately
it hangs at reserve stage.
Also investigated problem with wireshark and it seems that server is
not returning packet.
Another thing I tried was compiling and running 1.3 but faced same
problem.

I hope anybody has recipe for my problem,
Thank you,

Gerard Krijgsman

unread,
Apr 19, 2009, 5:45:28 PM4/19/09
to beanstalk-talk
See the other thread about the PHP client - the example has a bug.

The fixed version can be found here:
http://beanstalk.svn.sourceforge.net/viewvc/beanstalk/trunk/examples/beanstalk-example.php?revision=12&view=markup

The source of the problem is that the use_tube() function only applies
to the put() function, meaning that the reserve() function tries to
read from an empty default tube (and thus hangs). What's needed (as is
fixed in the link above) is to also do watch('foo');
Reply all
Reply to author
Forward
0 new messages