
On 5/25/2020 4:25 AM, Serhiy Storchaka wrote:
24.05.20 17:48, Eric V. Smith пише:
Does anyone have an opinion on https://bugs.python.org/issue39673? It maps ETIME to TimeoutError, in addition to the already existing ETIMEDOUT.
http://man7.org/linux/man-pages/man3/errno.3.html says:
*ETIME *Timer expired (POSIX.1 (XSI STREAMS option)).
(POSIX.1 says "STREAMioctl(2) <http://man7.org/linux/man-pages/man2/ioctl.2.html> timeout".)
*ETIMEDOUT *Connection timed out (POSIX.1-2001).
It seems like a reasonable change to me, but I'm not a subject matter expert on STREAMS, or what other affect this might have.
Why it was not mapped at first place? Was there any discussion?
Good question. Perhaps Antoine can answer. I don't see any mention of ETIME in PEP 3151. I'm assuming it was just an oversight. I couldn't find any reference to ETIME on python-ideas or python-dev (other than this discussion), either. Eric