title: Renci SSH.NET: SftpClient.UploadFile fails to upload files greater than 1GB in size
body: <p>I am using Renci .Net in C# in order to upload files to a Unix server (AIX) using SFTP, or to be more precise, I use the SftpClient.UploadFile method like this:</p>
  
  <pre><code> using (Stream fileStream = sftp.OpenRead(file.FullName))
   {
       string remoteFileName = directory + @"/" + file.Name;
       try
       {
           sftp.UploadFile(fileStream, remoteFileName, true);
       }
       //...
    }
  </code></pre>
  
  <p>This works, as long as my files are 1GB in size or smaller. As soon as I upload a 2GB file, the process stops at exactly 1GB of transferred data. It soesn't hit the catch block, it simply stops.</p>
  
  <p>Is this a known issue in Renci SSH.net? How can I fix it?</p>