So far, my network code is working fine, but I'm a little worried about what I hid under the carpet:
The manual pages for the accept, close, connect, recvand sendnotes that errno.EINTRcan be displayed when the system call is interrupted by a signal.
I don’t know at all.
What does python do with this? Does it automatically repeat the call, does it cause a socket.error call with this errno? What should I do if this exception is raised? Can I generate these signals myself in my unittests?
source
share