ebin123456 / py-amqplib

Automatically exported from code.google.com/p/py-amqplib
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Does not recover from network downtime #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using amqplib v1.0.2 (with timeout patch) on Python 3.2.

While the lib is in channel.wait() waiting for a message (which, of course, it 
is most of the time):

- Remove power to the WLAN router of which the computer is connected.
- Wait a few seconds
- Plug power back in

Observe: NOTHING happens. The amqplib client is now just waiting indefinitely, 
will never exit and will never receive a message.

Original issue reported on code.google.com by fgunder...@gmail.com on 8 Feb 2012 at 9:52

GoogleCodeExporter commented 9 years ago
Does the computer get a different IP address when the router reboots?  If it 
had the same IP I'd thing TCP should be able to recover from that situation.

Original comment by barry.pe...@gmail.com on 5 Mar 2012 at 1:41

GoogleCodeExporter commented 9 years ago
Rebooting the router gives a different IP. Perhaps it clears the DHCP-table.
This issue is not a serious issue per se, but it illustrates that there is some 
wotk to be done to make the library more robust. I would very much like to 
participate here, see new issue posted after this.

Original comment by fgunder...@gmail.com on 5 Mar 2012 at 8:34