AW: [Twisted-Python] udp exception if connection reset by other peer
p@
digi at treepy.com
Wed May 14 16:19:38 MDT 2003
I think they are only raised if you connect to a localhost or local-lan
peer...
I think there is no need for an exception because you would need to
handle local and internet peers differently...
So I think swallow them silently is ok
Cheers
p@
-----Ursprüngliche Nachricht-----
Von: twisted-python-admin at twistedmatrix.com
[mailto:twisted-python-admin at twistedmatrix.com] Im Auftrag von Itamar
Shtull-Trauring
Gesendet: Mittwoch, 14. Mai 2003 23:45
An: twisted-python at twistedmatrix.com
Betreff: Re: [Twisted-Python] udp exception if connection reset by other
peer
On Wed, 14 May 2003 23:34:16 +0200
"p@" <digi at treepy.com> wrote:
> If i send a udp packet with a connected udp-protocoll to an other peer
> where the port is closed or not reachable and the other peer resets
> the connection I get an exception...
Good point. UDP does occasionally give information about non-reachable
hosts, currently expressed in Twisted by an exception. Should I bother
raising these or just swallow them silently?
Meanwhile, you can just wrap the write() with a try/except: pass.
--
Itamar Shtull-Trauring http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting
_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
More information about the Twisted-Python
mailing list