Hi!

I'm using beanstalkd to queue some work to be processed remotely on my 
company. The server is on the internet (public ip) but the consumers are 
behind adsl lines remotely. So there is a linux as client going out through 
a dynamic ip and connecting to the server to get a job. It's all PHP and 
I'm using pheanstalk library on client.

Everything runs smoothly for some time, but then the adsl changes the IP 
(every 24h hours the provider forces a reconnect) the client just hangs, 
never to go out of "reserve".

I thought that putting a timeout on the reserve would help it, but it 
didn't. As it seems, the client issues a command and blocks, it never 
checks the timeout. Even with reserve-with-timeout (instead of a simple 
reserve) it is the servers responsibility to return a TIME_OUT as the 
timeout occurs. The problem is, the connection is broken and the client 
will stay blocked reading, it will never return.
Is this a specific problem os pheastalk or is it inherent to the protocol? 
How could I detect the stale connection and force a reconnect? (maybe some 
kind of keepalive)

Thanks!
Andre

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/beanstalk-talk/-/vLModtRjcYgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en.

Reply via email to