Closed ontytoom closed 8 years ago
Test program I used (DebugPrintln is any debugging function of your choice):
int NrTests = 1000;
int nrSuccess = 0, nrFail = 0;
for ( int i = 0; i < NrTests; i++ )
{
IEnumerable<FtpEntry> list;
try
{
list = ftp.ListEntries( "/" );
DebugPrintln( list.ToArray().Count().ToString() );
nrSuccess++;
}
catch ( Exception ex )
{
DebugPrintln( ex.Message );
nrFail++;
}
}
DebugPrintln( "Tally: " + NrTests + " tests, of which " + nrSuccess + " passes and " + nrFail + " failed" );
Found on latest library from Nuget
It looks like the directory content is not fully transferred, and the data channel is closed before the end. However, I'll take a look at it.
Unfortunately, this works for me...
I have noticed that sometimes I get an error connecting to a certain server: ftp.ch.freebsd.org
Out of 2000 tests, it failed only 8 times..... so, strangely enough, it only happens sometimes.
It reports an error:
When I look at the server listing for / I see that the only matching line is:
The server claims to be vsFTPd 3.0.2