Hi
I try to download a file (about 700MB) from internet using multi-connection. I created 8 thread and assign ranges to request header but just 2 threads CHttpFile::SendRequest() receive OK_PARTIAL (status code 206) response and others SendRequest() are TIMED_OUT even on several tries. But when I terminate the 2 first success threads, the 206 response are received by all other threads! I confused, How solve this problem:
Also server supports Accept Ranges.
I used following flags:
dwFalgs = INTERNET_FLAG_TRANSFER_BINARY | INTERNET_FLAG_NO_COOKIES | INTERNET_FLAG_KEEP_CONNECTION | INTERNET_FLAG_DONT_CACHE | INTERNET_FLAG_RELOAD;
if (url.IsHttps())
dwFlags |= INTERNET_FLAG_SECURE | INTERNET_FLAG_IGNORE_CERT_CN_INVALID | INTERNET_FLAG_IGNORE_CERT_DATE_INVALID;