Kaydet (Commit) 5a92175f authored tarafından Guido van Rossum's avatar Guido van Rossum

After hearing from someone who gave up on timeout sockets due to a

mistake in his code, I'm adding a note explaining that you should call
settimeout() before connect().
üst 2cbdc2a4
......@@ -625,6 +625,10 @@ method should only be used when the socket is in blocking mode; in
timeout or non-blocking mode file operations that cannot be completed
immediately will fail.
Note that the \method{connect()} operation is subject to the timeout
setting, and in general it is recommended to call
\method{settimeout()} before calling \method{connect()}.
\begin{methoddesc}[socket]{setsockopt}{level, optname, value}
Set the value of the given socket option (see the \UNIX{} manual page
\manpage{setsockopt}{2}). The needed symbolic constants are defined in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment