[issue9686] asyncore infinite loop on raise

mmw report at bugs.python.org
Thu Aug 26 04:33:09 CEST 2010


mmw <0xcafefeed at gmail.com> added the comment:

First it depends on the socket type but might use a select call, secondable
raise on a socket.error, thirdable you could call the close_handle with the
message and let the guys if he would like to retry, network connection might
be capricious especially for client connected through a wifi network or
behind some firewall blocking port

the asyncchat is a looper if you don't let him catch the exception you just
create an infinite loop, this API needs a stronger model.

On Wed, Aug 25, 2010 at 3:45 PM, Giampaolo Rodola'
<report at bugs.python.org>wrote:

>
> Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
>
> Could you provide a code sample which demonstrates the problem?
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue9686>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file18647/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9686>
_______________________________________
-------------- next part --------------
First it depends on the socket type but might use a select call, secondable raise on a socket.error, thirdable you could call the close_handle with the message and let the guys if he would like to retry, network connection might be capricious especially for client connected through a wifi network or behind some firewall blocking port<br>
<br>the asyncchat is a looper if you don&#39;t let him catch the exception you just create an infinite loop, this API needs a stronger model.<br> <br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 3:45 PM, Giampaolo Rodola&#39; <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Giampaolo Rodola&#39; &lt;<a href="mailto:g.rodola at gmail.com">g.rodola at gmail.com</a>&gt; added the comment:<br>
<br>
Could you provide a code sample which demonstrates the problem?<br>
<br>
----------<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue9686" target="_blank">http://bugs.python.org/issue9686</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br>


More information about the Python-bugs-list mailing list