ZMQ Pub-Sub Program Failure When Losing Network Connectivity
问题 I have a simple pub-sub setup on a mid-sized network, using ZMQ 2.1. Although some subscribers are using C# bindings, others are using Python bindings, and the issue I'm having is the same for either. If I pull the network cable from a machine running a subscriber, I get an un-catchable error that immediately terminates that subscriber. Here's a very simple example of a subscriber in Python (not actual production code, but enough to reproduce the problem): import zmq def main(server_address,