637 Commits

Author SHA1 Message Date
Gert Driesen 774951e0c4 Do not initialize fields with default values. 2017-02-03 16:17:21 +01:00
Gert Driesen eb39b69b34 Revert "Do not initialize fields to default values."
This reverts commit 54fbd8f5ba.
2017-02-03 16:16:10 +01:00
Gert Driesen 54fbd8f5ba Do not initialize fields to default values. 2017-02-03 16:15:24 +01:00
Gert Driesen 8a5d8edb70 Removed _ownsHandle field. 2017-02-03 16:13:49 +01:00
Gert Driesen 94d0230608 Removed IsAsync property. 2017-02-03 16:12:41 +01:00
Gert Driesen 6ebb978bac Minor slashdoc (syntax/format) updates. 2017-02-03 16:02:55 +01:00
Gert Driesen 9f87bc3f26 Compare server window size with uint zero. 2017-02-03 10:57:29 +01:00
Gert Driesen a51e82fcb8 Fix remaning tests. 2017-02-02 20:09:35 +01:00
Gert Driesen c7c6e87799 Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop 2017-02-02 19:36:34 +01:00
Gert Driesen e4a1a5daca Fix some more tests. 2017-02-02 19:36:30 +01:00
Gert Driesen 61b415a31f Fix test. 2017-02-02 19:20:12 +01:00
Gert Driesen 61d45b12aa Add ISftpFileReader to remaining project files. 2017-02-02 19:12:09 +01:00
Gert Driesen cd4fad7f67 As of VS 2017 RC3, the sources files in the project directory are implicitly included. 2017-02-02 18:22:14 +01:00
Gert Driesen 3f78ad3002 Add CreateFileReader method on SftpSession in which we use the size of the file to determine the maximum pending reads to allow, and calculate the size of individual chunks.
Add CreateSftpFileReader method to ServiceFactory.
Add nullOnError argument to SftpSession.RequestFStat.
2017-02-02 18:16:07 +01:00
Gert Driesen 1f2c7f2547 Do not use reported file size to determine whether read-ahead should be stopped.
Only use file size for optimization.
2017-02-02 18:11:55 +01:00
Gert Driesen 807e9fc14e Optimize handling response actions. 2017-02-02 17:18:51 +01:00
Gert Driesen 191b704691 Eliminate extra String.Format. 2017-02-02 10:17:25 +01:00
Gert Driesen ccefd706a3 Set C# language version to 5 for release and debug configuration. 2017-01-29 20:21:06 +01:00
Gert Driesen e937c9d841 Improve exception handler for SftpFileReader.
Add more tests (WIP).
2017-01-29 19:38:19 +01:00
Gert Driesen 4e801fb354 Specify C# language version. 2017-01-29 19:37:22 +01:00
Gert Driesen 5b3e64e368 Harden read-ahead by relying
Throw SshException when read has completed.
Identify more tasks that need to be completed before the implementation can be considered done.
2017-01-24 21:25:12 +01:00
Gert Driesen f29b4826a3 Use PulseAll instead of Pulse as we want to signal all threads. 2017-01-24 18:20:58 +01:00
Gert Driesen 9f63730470 Sync project files, and remove stray CWL. 2017-01-22 20:45:45 +01:00
Gert Driesen fe27ec31e1 Added BeginRead/EndRead to ISftpSession and SftpSession.
Draft of read-ahead implementation for DownloadFile and BeginDownloadFile overloads of SftpClient.
2017-01-22 19:53:56 +01:00
Gert Driesen 54215ffd74 Remove empty line. 2017-01-22 19:49:54 +01:00
Gert Driesen e643378cfc Added EndInvoke(TimeSpan timeout). 2017-01-22 19:49:40 +01:00
Gert Driesen 31e204b634 Modify assert order to first get details of exception. 2017-01-22 16:01:52 +01:00
Gert Driesen 710aa37bd5 Do not use Socket.Select on .NET Framework 3.5 as will not block when -1 is specified as timeout.
More information is available here:
https://support.microsoft.com/kb/2615314

Fixes issue #113.
2017-01-22 15:46:57 +01:00
Gert Driesen b63a0ea524 Revert "Attempt to run tests against .NET 3.5 and 4.0."
This reverts commit b6ee090ba5, reversing
changes made to 0baac6aebd.
2017-01-22 14:52:07 +01:00
Gert Driesen b6ee090ba5 Attempt to run tests against .NET 3.5 and 4.0. 2017-01-22 14:23:20 +01:00
Gert Driesen 32a9f076c1 Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop 2017-01-22 11:12:45 +01:00
Gert Driesen 0b04aaa79d Add more tests for .NET 3.5 test project. 2017-01-22 11:12:37 +01:00
Toni Spets ffda76a15b Remove unused variables, fixes mcs warnings on Mono 2017-01-12 18:00:29 +02:00
Gert Driesen 3f28d8c175 Revert changes in BigInteger.Random(int bitLength) from commit 1b881f5df3.
Fixes issue #147.
2017-01-08 15:15:59 +01:00
Gert Driesen 9747d9caef Revert "Add ClientIP to client info to allow select client IP that should be used for connection (#132)"
This reverts commit 78679a3c30.
2016-12-30 13:14:35 +01:00
Gert Driesen 6d8f545bb4 Introduce VS 2017 solution and MSBuild-based .NET Core project
* Introduced VS 2017 solution
* Use MSBuild-based project for .NET Core.
* Removed Renci.SshNet.NETCore project from VS 2015 solution (as only VS
2017 supports MSBuild-based project for .NET Core)
* Added build script since MSBuild v15.0 cannot be used to build the VS
2012 solution (pfffff).
2016-12-29 21:27:19 +01:00
oleg 78679a3c30 Add ClientIP to client info to allow select client IP that should be used for connection (#132) 2016-12-20 13:10:50 -05:00
oleg 5b724e5001 Merge branch 'develop' of https://github.com/sshnet/SSH.NET.git 2016-12-20 11:40:03 -05:00
oleg 1b881f5df3 Change how clientExchangeValue is calculated (#130) 2016-12-20 11:39:51 -05:00
drieseng 650e6ab8f2 Remove unused imports. 2016-12-16 13:02:37 +01:00
drieseng cea61f0573 Eliminate use of Linq. 2016-12-16 12:33:34 +01:00
drieseng 496eba2593 Update version info for 2016.1.0-beta1. 2016-12-14 20:56:08 +01:00
drieseng 9511c22abe Prepare for 2016.1.0-beta1. 2016-12-14 20:49:53 +01:00
drieseng 84d1291519 Use LastWriteTimeUtc and LastAccessTimeUtc of the local directory that corresponds with the remote path.
Fixes issue #129.
2016-12-12 22:12:25 +01:00
drieseng e83486c391 Do not create extra directory level when uploading the content of a directory.
Fixes issue #128.
2016-12-12 21:51:38 +01:00
drieseng 0ac28d26cb Removed obsolete tracing.
Removed timestamps from log messages (as the .NET tracing infrastructure already provides support for this).
2016-12-12 16:33:56 +01:00
drieseng c7cc92bbd6 Remove commented out code. 2016-12-12 16:31:13 +01:00
Gert Driesen 8071d00098 Removed obsolete reference to Microsoft.CSharp. 2016-12-09 18:15:43 +01:00
drieseng 18613b2e6e Added timestamp to tracing. 2016-12-02 18:18:03 +01:00
drieseng a6f0d27fbe Removed extra tracing. 2016-12-02 18:17:18 +01:00