Fix for non-blocking SSL connections