SSL Timeout error

When using SSL timeouts are considered errors and the client simple do not work.
This fix fixes the problem.