Commit Graph
682 Commits
Author SHA1 Message Date
drieseng 05d8ccbd7b Avoid using less optimal Linq, and use optimized extension methods instead. 2016-05-16 17:03:38 +02:00
drieseng b359dfa1e5 Added Array class which allows an empty array<T> to be reused.
Use BCL ASCIIEncoding class where available.
2016-05-16 16:45:22 +02:00
drieseng 5b3dd35b6f IsSingleByte cannot be overridden on SL/WP. 2016-05-16 16:22:06 +02:00
drieseng c7e3268569 Removed IsEqualTo<T>(this IEnumerable ...) overloads.
Renamed TrimLeadingZero to TrimLeadingZeros.
Added optimizations for Take(this byte[], int, int).
Added Take(this byte[], int) overload.
Added optimized IsEqualTo(this byte[], byte[]).
Added Concat(this byte[], byte[]).
2016-05-16 16:21:17 +02:00
drieseng 203d228a9b Eliminate unused bufferSize. 2016-05-16 16:08:05 +02:00
drieseng c4b09f7c48 Test cleanup. 2016-05-16 13:50:46 +02:00
drieseng 38b6bcdc0c Added tests for BigInteger. In huge parts based on the unit tests in Mono.
Update to latest version of BigInteger in Mono before the integration of the MS reference source.
Added slashdoc based on MSDN.
2016-05-16 13:49:56 +02:00
drieseng b64475d623 Improve compatibility with BCL ASCIIEncoding:
Fixed GetMaxByteCount and GetMaxCharCount.
Override IsSingleByte to always return true.
Added tests.
2016-05-15 12:07:42 +02:00
drieseng 7962f835cf Fixed typo. 2016-05-14 08:57:15 +02:00
drieseng a7a6e0552e SocketRead:
* Do not pass buffer by reference.
* Use infinite timeout when reading from socket.
2016-05-06 19:20:10 +02:00
drieseng a567151417 Merge branch 'develop' of https://github.com/sshnet/SSH.NET.git 2016-05-06 09:56:56 +02:00
drieseng 14e26081af Added more information for the terminalName argument of CreateShellStream.
Fixes issue #10.
Removed bufferSize from the ShellStream ctor.
2016-05-06 09:56:48 +02:00
Gert Driesen 4dfa6f4d6e Tuning is always active now 2016-05-05 18:37:52 +02:00
drieseng a924a3ba03 Always use "tuning" code.
Avoid some NRE in Dispose.
2016-05-05 18:07:37 +02:00
drieseng 17f30f1135 Have Read(...) and ReadPartial(...) respect specified timeout in synchronous mode.
Make IsErrorResumable public.
2016-05-05 18:02:28 +02:00
drieseng dc327d7887 No longer unscribe from Session events in finalizer, as we wouldn't even get finalized if Session still had subscriptions for the current instance. 2016-05-03 21:35:57 +02:00
drieseng 28a1892dc2 Fixed some warnings. 2016-05-01 20:11:03 +02:00
drieseng e7ce24932a Add back partial modifier on Extensions. 2016-05-01 20:00:43 +02:00
drieseng a4d01b9fac Do not show warnings that we cannot fix without breaking the VS 2012 build. 2016-05-01 19:58:26 +02:00
drieseng 9334312d04 Avoid event-based memory leak in case of exception in Authenticate.
Simplify Dispose(bool).
2016-05-01 19:57:59 +02:00
drieseng 1ce21e4ed7 Use List.Count instead of Enumerable.Count(). 2016-05-01 19:55:37 +02:00
drieseng 1cfa14455b Fixed warnings. 2016-05-01 19:54:42 +02:00
drieseng eb044f58e6 Remove unused imports. 2016-05-01 19:53:00 +02:00
drieseng 81fb70798d Avoid possible NRE. 2016-05-01 19:51:33 +02:00
drieseng 063947483c Make ctor protected.
Remove this qualifier.
2016-05-01 19:51:15 +02:00
drieseng 06b5128916 Remove this qualifier. 2016-05-01 19:49:50 +02:00
drieseng 0f5d2f5ad4 Remove unused import. 2016-05-01 19:44:06 +02:00
drieseng 68b2267103 Avoid possible NRE. 2016-05-01 19:42:52 +02:00
drieseng 316ae12fdc Remove this qualifier. 2016-05-01 19:42:18 +02:00
drieseng 58086b9ef4 Fix bunch of warnings. 2016-05-01 18:21:23 +02:00
drieseng 868f981c4a Remove qualifier. 2016-05-01 17:00:18 +02:00
drieseng 780217820f Remove unused import. 2016-05-01 14:50:21 +02:00
drieseng bda8b0bcd9 Removed this qualifier. 2016-05-01 14:50:11 +02:00
drieseng 11f77bc177 Remove partial modifier. 2016-05-01 14:48:55 +02:00
drieseng e09239ef0e Avoid event-based memory leak when client is not disposing. 2016-05-01 14:47:46 +02:00
drieseng 9100a47ddd Avoid event-based memory leak when client is not disposing instance.
Remove partial modifier.
2016-05-01 14:44:00 +02:00
drieseng b6035077ac Avoid event-based memory leak when client is not disposing instance.
Removed extra whitespace, and partial modifier.
2016-05-01 14:38:50 +02:00
drieseng 3a48cde559 Remove this qualifier.
Simplify code.
2016-05-01 14:20:02 +02:00
drieseng 56d68870cb Avoid event-based memory leak. 2016-05-01 14:17:00 +02:00
drieseng 4659bb804a Avoid event-based memory leak when client is not disposing instance. 2016-05-01 14:07:42 +02:00
drieseng 2f5e131e08 Remove extra whitespace. 2016-05-01 11:51:01 +02:00
drieseng 936cfb7b6b Do not show warnings that we cannot fix without breaking the VS 2012 build. 2016-05-01 10:18:22 +02:00
drieseng 4b59e93d0c Fix event-based memory leaks when clients do not properly dispose instances. 2016-05-01 10:17:38 +02:00
drieseng d48bb74aef Refactor to move indication whether EndExecute has been invoked for a given IAsyncResult to the CommandAsyncResult class.
Revert unsubscribe from session events when finalizing SshCommand.
Do not create reply message for ExitStatusRequestInfo unless requested.
Modify PipeStream member to throw ObjectDisposedException when stream has been disposed.
2016-04-30 21:57:31 +02:00
drieseng 9fd0adf6bf Remove partial modifier on class.
Remove this qualifier.
2016-04-30 13:52:56 +02:00
drieseng 30308e63a5 Document changes and fixes. 2016-04-30 10:58:39 +02:00
drieseng 0fa8e1ec48 Fixed session event leak when SshCommand is not disposed. 2016-04-30 10:56:08 +02:00
drieseng 45ab50572d Removed copyright. 2016-04-29 21:57:56 +02:00
drieseng 706ab13247 Relicense as MIT 2016-04-29 21:50:29 +02:00
Gert Driesen f456cbad87 Complete rename of HashAlgorithmFactory source file and update package dependency. 2016-04-28 22:15:04 +02:00