Add BrokenPipeError mapping both EPIPE and ESHUTDOWN

This commit is contained in:
Antoine Pitrou 2011-07-27 02:11:38 +02:00
parent c15f626cbd
commit 5cdf6378e4
1 changed files with 5 additions and 0 deletions

View File

@ -376,6 +376,10 @@ the list of errnos mapped to them, is submitted to discussion:
for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS);
this is the existing ``io.BlockingIOError`` with an extended role
* ``BrokenPipeError``: trying to write on a pipe while the other end has been
closed, or trying to write on a socket which has been shutdown for writing
(EPIPE, ESHUTDOWN)
* ``InterruptedError``: a system call was interrupted by an incoming signal
(EINTR)
@ -404,6 +408,7 @@ shown::
+-- BlockingIOError EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS
+-- ConnectionError
+-- BrokenPipeError EPIPE, ESHUTDOWN
+-- ConnectionAbortedError ECONNABORTED
+-- ConnectionRefusedError ECONNREFUSED
+-- ConnectionResetError ECONNRESET