Fixed SSL timeout implementation.