FTP session count that windows system can run simultaneously  
Author Message
remedios_





PostPosted: Visual C++ Language, FTP session count that windows system can run simultaneously Top

Hi, I made ftp client program using WinINet API.
The client first connects to the FTP server and downloads all of files in current directory.

The flow is like this.
------------------
InternetOpen(...)
InternetConnect(...)
FtpFindFirstFile(...)
(loop)
FtpGetFile(..)
InternetFindNextFile(..)
InternetCloseHandle(hFindFirstFile);
InternetCloseHandle(hConnect);
InternetCloseHandle(hOpen);
------------------

The situation is,
there are 100 FTP servers and I want run my own ftp client which inside running 5 threads each implements above routine.

As a result, some thread fail to get files.
My question is that FTP sessions(each connects another ftp server) couldn't run simultaneously




Visual C++11  
 
 
einaros





PostPosted: Visual C++ Language, FTP session count that windows system can run simultaneously Top

This is likely to be a concurrency problem. How have you implemented your application Do you have a pool of jobs waiting to be completed (like the 100 servers waiting to be listed), then e.g. 5 threads fetching new pending work items from that pool If so, do you have any kind of interlocking, so two jobs won't be taken on by more than one thread, if they all happen to "look" for new jobs at the same time

Are there any other aspects of your application that you could share with us



 
 
Damien Watkins - MSFT





PostPosted: Visual C++ Language, FTP session count that windows system can run simultaneously Top

Hello

Re: FTP session count that windows system can run simultaneously

I am going to mark this thread as answered since you have not followed up with any further information on your problem as requested for over a week - I assume you solved the problem yourself or one of the suggestions in this thread helped you solved the problem. If you have a solution you could post it so others can find it. If you do not have a solution then please submit further details and then mark the thread as unanswered.

Thanks

Damien