[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-03 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

Fixed in r88722.
I did not catch EAGAIN in connect() as it makes hang some tests.

--
resolution:  - fixed
status: open - closed
versions:  -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11265
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-03 Thread Марк Коренберг

Марк Коренберг socketp...@gmail.com added the comment:

 I did not catch EAGAIN in connect() as it makes hang some tests.
maybe incorrect tests? which test(s) failed ?

mmarkk@fad:/usr/include$ fgrep EWOULDB -r .
./asm-generic/errno.h:#define   EWOULDBLOCK EAGAIN  /* Operation would 
block */

So not catching EAGAIN ( at least in Linux) can not make some tests hang.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11265
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-01 Thread Марк Коренберг

Марк Коренберг socketp...@gmail.com added the comment:

patch updated for handling EPIPE

--
title: asyncore does not check for EAGAIN errno - asyncore does not check for 
EAGAIN and EPIPE errno
Added file: http://bugs.python.org/file20964/z.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11265
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-01 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
assignee:  - giampaolo.rodola
nosy: +giampaolo.rodola

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11265
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-01 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

Ok for EAGAIN.

I'm not completely sure about EPIPE on recv() as it is not listed here:
http://www.kernel.org/doc/man-pages/online/pages/man2/recv.2.html
...although I think it's ok to treat it as an alias for connection lost anyway.

In pyftpdlib I treat both EPIPE and EBADF as disconnect events, and this works 
with both select() and poll().

Your patches should be targeted for python 3.3 (and not 2.x).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11265
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-01 Thread Josiah Carlson

Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:

Giampaolo pinged me over email...

These additional conditions look good, and should be targeted for 3.3 .

Thank you :)

--
nosy: +josiahcarlson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11265
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com