Re: [Twisted-Python] How to get the socket error when NIC is down

2012-07-04 Thread Justin Venus
Can you share the code so we can see the problem for ourselves? Justin Venus On Jul 4, 2012 10:54 PM, "Peng Xiao -X (penxiao - Digital China at Cisco)" < penx...@cisco.com> wrote: > ** ** > > Hi experts, > > ** ** > > I wrote a TCP program using twisted, and the TCP socket bind the local IP

[Twisted-Python] How to get the socket error when NIC is down

2012-07-04 Thread Peng Xiao -X (penxiao - Digital China at Cisco)
Hi experts, I wrote a TCP program using twisted, and the TCP socket bind the local IP address, the code can reconnect TCP connection when TCP is disconnected. But the program will be exit without any error when the local NIC is down. I want to know how can I capture the exception when the local