Please add the line @timeout = 30 + @timeout if @timeout < 30 (replace 30 with whatever minimum time you think ssl upload requires doubled. The @timeout value determines how much time each thread will attempt to send on a single host.