'Set session timeout
:param timeout: The timeout in seconds
:return: The previous session timeout'

def set_timeout(self, timeout):

    if (not isinstance(timeout, integer_types)):
        raise TypeError('timeout    must    be    an    integer')
    return _lib.SSL_CTX_set_timeout(self._context, timeout)
