set_socket_timeout — Set the timeout of a socket.
set_socket_timeout is obsolete and is only provided for reasons of backward compatibility. New applications should use the operator set_socket_param with the parameter 'timeout' instead.
set_socket_timeout sets the timeout for the socket connection that is passed in Socket. The Timeout is used for reading and writing of data via the socket as well as for calls to socket_accept_connect. If problems during the transmission of the data cause a timeout, the underlying protocol cannot synchronize itself with the data any longer. Therefore, in these cases, the only possibility to put the system into a consistent state is to close both sockets and to open them anew. It should be noted that sometimes while reading data no error message will be returned if the sending socket is closed while the receiving socket is waiting for data. In these cases, empty data are returned (either objects or tuples).
The timeout is given in seconds as a floating point number. It can also be set to 'infinite', causing the read calls to wait indefinitely.
Default value: 'infinite'
Suggested values: 'infinite', 0, 1, 2, 3, 4, 5, 10, 30, 60
open_socket_accept, open_socket_connect, socket_accept_connect
socket_accept_connect, receive_image, receive_region, receive_xld