732
733
Some notes on socket blocking and timeouts: A socket object can be in one of
733
734
three modes: blocking, non-blocking, or timeout. Sockets are always created in
735
737
non-blocking mode, operations fail (with an error that is unfortunately
736
738
system-dependent) if they cannot be completed immediately. In timeout mode,
737
739
operations fail if they cannot be completed within the timeout specified for the
741
743
Timeout mode internally sets the socket in non-blocking mode. The blocking and
742
744
timeout modes are shared between file descriptors and socket objects that refer