ssl.SSLSocket.setsockopt

SSLSocket.setsockopt(level, option, value)

Set a socket option. See the Unix manual for level and option. The value argument can either be an integer or a string.