Home › Forums › .NET libraries › Xceed SFTP/FTP for .NET › data exceeds window size
-
AuthorPosts
-
#21502 |
I have a customer using our component and trying to upload files to a GlobalScape EFT server, 6.1 SFTP server.
our component uses C# to upload the file. It seems like small files (i.e. 1KB, 4KB, etc) upload just fine. However, when we try uploading a 19K file, I can see we get the following out put in the SFTP trace log….and a zero byte file gets written to the SFTP site:
at Xceed.SSH.Protocols.SSHTransportLayerProtocol.ReadPacket(IEnumerator`1 enumerator, Stream stream, Int32& packetLength, SSHPacket& packet, Int32& count)
at Xceed.SSH.Core.SSHPacketIOManager.ReceivePacket()
at Xceed.SSH.Core.SSHPacketIOManager.ReadThread()
SFtpPacketIOManager sends SSH_FXP_REMOVE
SFtpClient.Disconnect(). Channel: 1/0
SSHClientConnectionManager.Disconnect() starting. Remote: True Reason: 2/data exceeds window size
SSHClientConnectionManager.Disconnect() completed at 12/27/2013 1:34:32 PM with True result
Here’s what the C# code looks like:
if (_sessionSend == null) _sessionSend = new SFtpSession(_clientSend);
//using (SFtpSession session = new SFtpSession(_clientSend))
//{
SFtpFolder fldRoot = new SFtpFolder(_sessionSend);
using (MemoryStream strm = new MemoryStream(message.InternalBytes))
{
StreamFile destFile = new StreamFile(strm);
strm.Seek(0, SeekOrigin.Begin);
// fix folder path if there is a slash
if (fldRoot.FullName.EndsWith(@”\”) || fldRoot.FullName.EndsWith(@”/”))
{
if (FtpSendFolder.StartsWith(@”\”) || FtpSendFolder.StartsWith(@”/”))
FtpSendFolder = FtpSendFolder.Substring(1);
}
SFtpFolder upLoadFolder = new SFtpFolder(_sessionSend, FtpSendFolder);
if (!upLoadFolder.Exists) throw new Exception(string.Format(“The SFTP folder, ‘{0}’, you are trying to publish from does not exist because it is getting resolved to ‘{1}’. Please ensure that the folder supplied is relative to the current logged in folder which is ‘{2}'”, FtpSendFolder, upLoadFolder == null ? “Unknown” : upLoadFolder.FullName, fldRoot == null ? “Unknown” : fldRoot.FullName));
if (!string.IsNullOrEmpty(tempFilename))
{
destFile.Name = tempFilename;
destFile.CopyTo(upLoadFolder, Overwrite);
strm.Flush();
AbstractFile file1 = upLoadFolder.GetFile(filename);
if (file1.Exists) file1.Delete();
AbstractFile file2 = upLoadFolder.GetFile(tempFilename);
file2.Name = filename;
}
else
{
destFile.Name = filename;
destFile.CopyTo(upLoadFolder, Overwrite);
strm.Flush();
}
}
Applies to Xceed SFTP for .NET. Imported from legacy forums. Posted by Martin (had 747 views)
Seems like FileZilla and other utilities work just fine. I’ve uploaded both a filezilla generated log and an Xceed sftp generated log that were generated when attempting to upload a 2.4 MB file .
Applies to Xceed SFTP for .NET. Imported from legacy forums. Posted by Martin (had 78 views)
filezilla log file…looks like you can’t do more than 1 attachment
Applies to Xceed SFTP for .NET. Imported from legacy forums. Posted by Martin (had 146 views)
Hi Martin,
I apologize for the delay. The developer has confirmed that he is working on the issue and is close to a solution. Thank you for your patience.
Applies to Xceed SFTP for .NET. Imported from legacy forums. Posted by Diane [Xceed] (had 1184 views)
-
AuthorPosts
- You must be logged in to reply to this topic.