What do python sockets do with EINTR?

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?

+3
source share
1 answer

Python ( - , -EINTR ). EINTR, , . , (, socket.accept ) .

+1

All Articles