Welcome to the Xceed Community | Help
Community Search  
More Search Options

Timeout in Xceed FTP's stream interface

Sort Posts: Previous Next
  •  10-15-2009, 12:05 AM Post no. 24501

    Timeout in Xceed FTP's stream interface

    Hi,

    My company has Xceed's site license and we are using Xceed's FTP C# library to implement some feature.

    My question is about timeout in FTP's stream interface.  I know it may be a little strange in the way we use it.

    Most methods in FTP support the 30s default timeout.  However, if we get the stream from GetDownloadStream,

    it seems there won't be any timeout.  For example:

     

    FtpClient client = new FtpClient(XXXX);

    Stream stream = client.GetDownloadStream(XXXXXX); 

    while (! EOF of the stream) {

        stream.read(buf, ...);

    }

    If there is any connection drop in the loop, it seems the read will be blocking there FOREVER?!

    It really surprised us because this makes the stream interface cannot handle with any error.

    Furthermore, another question is, does the stream return by GetDownloadStream support BeginRead/EndRead (Async)?

     

    This is a little urgent.  It is a blocking issue for us currently.

     

    Thank you so much.

     

    Yours,

    Yan 

  •  10-16-2009, 4:26 PM Post no. 24567 in reply to 24501

    Re: Timeout in Xceed FTP's stream interface

    Hi Yan,

    Please refer to your support case for all follow up communication. I will post the final solution of your problem on this thread.

    Thanks,

    Alain,

    Customer Support


    Regards,

    Alain Jreij,

    Web Developer,

    Xceed Software Inc
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.