Test setsockopt and timeouts