I
Innokentiy Ivanov
Good afternoon,
We are developing a client-side FTP component with SSL capabilities and are
facing the below issue when the component is used from the ASP.NET web page.
Connection to the FTP server is established fine and we are able to send
commands which only involve the use of FTP control channel (such as pwd,
cwd, user, pass etc.). However, when we try to issue a LIST command (which
requires a secondary "data channel" connection), the passive data connection
is never established successfully.
We were able to narrow down the issue to the BeginConnect()/EndConnect()
function pair. It appeared that the delay between BeginConnect() and the
corresponding callback function calls that are to establish FTP data
connection reaches up to 3 minutes (!) time (and, consequently, our
component shuts data connection down by timeout). The problem only occurs if
the component is invoked from the ASP.NET web page; connection made by the
same code from winforms application on the same machine works fine. Another
interesting fact is that the problem has been only noticed by two of our
customers, and we in turn have never been able to reproduce it in our
environments.
Can anybody please suggest the possible reason for the issue? Are there any
restrictions for the number of opened socket connections from a web page?
Or, possibly, asynchronous socket calls are the case?
Thank you in advance.
With best regards,
Innokentiy Ivanov
We are developing a client-side FTP component with SSL capabilities and are
facing the below issue when the component is used from the ASP.NET web page.
Connection to the FTP server is established fine and we are able to send
commands which only involve the use of FTP control channel (such as pwd,
cwd, user, pass etc.). However, when we try to issue a LIST command (which
requires a secondary "data channel" connection), the passive data connection
is never established successfully.
We were able to narrow down the issue to the BeginConnect()/EndConnect()
function pair. It appeared that the delay between BeginConnect() and the
corresponding callback function calls that are to establish FTP data
connection reaches up to 3 minutes (!) time (and, consequently, our
component shuts data connection down by timeout). The problem only occurs if
the component is invoked from the ASP.NET web page; connection made by the
same code from winforms application on the same machine works fine. Another
interesting fact is that the problem has been only noticed by two of our
customers, and we in turn have never been able to reproduce it in our
environments.
Can anybody please suggest the possible reason for the issue? Are there any
restrictions for the number of opened socket connections from a web page?
Or, possibly, asynchronous socket calls are the case?
Thank you in advance.
With best regards,
Innokentiy Ivanov