Fix timeout when not using TLS