Hi Zhu Han! Thank you for answering.
I understand this is expected behaviour of tcp/ip, what I didn't know is if this is intended behaviour of beanstalk clients. I could't find any references on setting so_timeout on pheanstalk, I'll keep looking. I guess the protocol or the clients should have a bultin protection for that, it seems fragile for when client and server are distant over the internet. Thanks! Andre On Mon, Jul 30, 2012 at 4:28 AM, Zhu Han <[email protected]> wrote: > This is the expected behavior of TCP/IP. When no data is sent over the wire, > TCP can not detect the connection is broken after the IP is changed. > > The only option is set SO_TIMEOUT on the connection to beanstalkd. Usually, > you can set it larger than the timeout value of reserve operation, so the > connection is not timed out prematurely. > > best regards, > 韩竹(Zhu Han) > > 坚果云, 最简捷易用的云存储 > 无限空间, 文件同步, 备份和分享! > > > > On Sat, Jul 14, 2012 at 10:53 AM, Andre Ruiz <[email protected]> wrote: >> >> >> I have temporarily solved this problem making a vpn between the client and >> the server, so that the IPs of each end of the connection never change, even >> if the dynamic ip changes and the vpn reconnect. >> >> But I still would be interested in knowing if this is an expected >> behaviour of the protocol. >> >> 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/-/no6kRRwdbZ8J. >> >> 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. > > > -- > You received this message because you are subscribed to the Google Groups > "beanstalk-talk" group. > 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. -- Andre Ruiz <[email protected]> Curitiba, PR, Brasil Tel +55 (41) 8407-3847 -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. 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.
