Stephen Toub [Sun, 7 Apr 2019 20:51:29 +0000 (16:51 -0400)]
Plumb CancellationToken through Socket.Receive/SendAsync (dotnet/corefx#36516)
In .NET Core 2.1 we added overloads of Send/ReceiveAsync, and we proactively added CancellationToken arguments to them, but those tokens were only checked at the beginning of the call; if a cancellation request came in after that check, the operation would not be interrupted.
This PR plumbs the token through so that a cancellation request at any point in the operation will cancel that operation. On Windows we register to use CancelIoEx to request cancellation of the specific overlapped operation on the specific socket. On Unix we use the existing cancellation infrastructure already in place to support the existing custom queueing scheme.
Some caveats:
- On Windows, canceling a TCP receive will end up canceling all TCP receives pending on that socket, even when we request cancellation of a specific overlapped operation; this is just how cancellation works at the OS level, and there's little we can do about it. It also shouldn't matter much, as multiple pending receives on the same socket are rare.
- If multiple concurrent receives or multiple concurrent sends are issued on the same socket, only the first will actually be cancelable. This is because this implementation only plumbs the token through the SocketAsyncEventArgs-based code paths, not the APM based code paths, and currently when using the Task-based APIs, we use the SocketAsyncEventArgs under the covers for only one receive and one send at a time; other receives made while that SAEA receive is in progress or other sends made while that SAEA send is in progress will fall back to using the APM code paths. This could be addressed in the future in various ways, including a) just using the SAEA code paths for all operations and deleting the APM fallback, or b) plumbing cancellation through APM as well. However, for now, this approach addresses the primary use case and should be sufficient.
- This only affects code paths to which the CancellationToken passed to Send/ReceiveAsync could reach. If in the future we add additional overloads taking CancellationToken, we will likely need to plumb it to more places.
Commit migrated from https://github.com/dotnet/corefx/commit/
2190a0ffbbc0af808b67e827abdaf01be4271aeb
Erhan Atesoglu [Sun, 7 Apr 2019 20:44:07 +0000 (13:44 -0700)]
Moved Interop Locations For System.IO.Compression.Brotli (dotnet/corefx#36614)
* MovedInteropLocationForBrotli
* Combined Brotli Files
Commit migrated from https://github.com/dotnet/corefx/commit/
e5fddbc1aee5215d988f8044be6d48b273286689
Steve Harter [Sat, 6 Apr 2019 03:56:20 +0000 (20:56 -0700)]
Support json deserialize of 'null' and 'bool' when declared type is typeof(object) (dotnet/corefx#36637)
* Support null and bool values for typeof(object)
* Remove support for bool
Commit migrated from https://github.com/dotnet/corefx/commit/
35249a0072b41a89ce1542deacb2611c2393dec0
Jeremy Barton [Sat, 6 Apr 2019 03:02:12 +0000 (20:02 -0700)]
Add the TPM Object Identifiers to the static table in OidLookup
Experimentation suggests that these values are non-localized in Windows,
and are currently unmapped in OpenSSL; so they are good candidates for
static registration in OidLookup.
The TpmIdentifiers test passed on Windows Server 2012 R2 before the change,
to help prevent typos with registration.
Commit migrated from https://github.com/dotnet/corefx/commit/
2862fae4f7686c0db8cddd26e7da05d0521e2c1d
Foxtrek_64 [Sat, 6 Apr 2019 02:53:21 +0000 (21:53 -0500)]
Label implements IEquatable<Label> (dotnet/corefx#35673)
* Label implements IEquatable<Label>
* Add Unit Tests for IEquatable<Label>
* Actually track LabelEquals.cs this time
* Move Label IEquatable declaration to ILGeneration.netcore
* Merge IEquatable unit tests with existing equality tests
Commit migrated from https://github.com/dotnet/corefx/commit/
b561cd457ccaf4fbf700a561e9581a4214315b81
Santiago Fernandez Madero [Sat, 6 Apr 2019 02:40:22 +0000 (19:40 -0700)]
Remove Microsoft.Windows.Compatibility.Shims package (dotnet/corefx#36644)
* Remove Microsoft.Windows.Compatibility.Shims package
* PR Feedback
Commit migrated from https://github.com/dotnet/corefx/commit/
f61f49711b441a6650e6989f3c1be551732dd10f
Vladimir Sadov [Sat, 6 Apr 2019 02:39:51 +0000 (19:39 -0700)]
Fix a race condition in a TaskStatusTest (dotnet/corefx#36645)
See:https://github.com/dotnet/coreclr/issues/20706
Commit migrated from https://github.com/dotnet/corefx/commit/
d00fa24e3ee8f55c81589c4ba6841e5baf8cd646
Jeremy Barton [Sat, 6 Apr 2019 02:37:38 +0000 (19:37 -0700)]
Provide a temporary RSA decryption buffer when dest is too small (dotnet/corefx#36601)
* Provide a temporary RSA decryption buffer when dest is too small
* Remove the semi-redundant second span variable
* Add tests to ensure that destination is not tainted when decryption fails
* Make Decrypt_WrongKey_OAEP_SHA256 conditional
Commit migrated from https://github.com/dotnet/corefx/commit/
df5bba114e23afc4a3621917da0a1f810be19e7a
Egor Chesakov [Fri, 5 Apr 2019 22:47:01 +0000 (15:47 -0700)]
Merge pull request dotnet/corefx#36636 from dotnet/MicrosoftPrivateCoreFxNETCoreAppLinuxMuslArm64
Add linux-musl-arm64 RID to Microsoft.Private.CoreFx.NETCoreApp
Commit migrated from https://github.com/dotnet/corefx/commit/
9cc965f2f2da6284b933204810e710cf0e46db10
William Godbe [Fri, 5 Apr 2019 21:41:13 +0000 (14:41 -0700)]
Merge pull request dotnet/corefx#36634 from wtgodbe/Preview5
Update branding to preview5
Commit migrated from https://github.com/dotnet/corefx/commit/
facd959f5c1cead92dba0b1eb2350c430b5b1630
Krzysztof Wicher [Fri, 5 Apr 2019 20:05:34 +0000 (13:05 -0700)]
Negotiated ciphersuite (dotnet/corefx#35029)
* NegotiatedCiphersuite implementation
* fix after merge conflict
* fix netfx
* add more expected Tls 1.0 ciphersuites (rfc5289)
* change TlsCipherSuite API to nullable
* apply self-feedback
* apply feedback
* Revert "change TlsCipherSuite API to nullable"
This reverts commit dotnet/corefx@
c8bffccb5b368239be8529f3789a47f322754907.
* simplification around nullables
* msbuild /t:GenerateReferenceSource instead of copy & paste
* revert badly generated APIs
* fix codegen after moving tt files
* apply feedback
Commit migrated from https://github.com/dotnet/corefx/commit/
f9fbe70f05b6ca89e94dcc91126d5fd4829a100e
David Fowler [Fri, 5 Apr 2019 18:50:09 +0000 (11:50 -0700)]
Various cleanup and feedback (dotnet/corefx#36633)
* Various cleanup and feedback
- Doc comments for options
- Added test coverage for StreamPipeWriterOptions
- Reset tailBufferedBytes to 0 in StreamPipeWriter.FlushAsync
- Use UnsafeRegister in FlushAsync
Commit migrated from https://github.com/dotnet/corefx/commit/
0c8fa4e730f966ec923d3f623deb00dba8c431b4
Jiayi [Fri, 5 Apr 2019 18:22:26 +0000 (11:22 -0700)]
Change values of Microsoft.XmlSerializer.Generator command parameters through msbuild properties (dotnet/corefx#36085)
* sgen properties
* set default value for sgen references
* a few changes according to feedback
* if rsp file is not generated, ignore it and use default settings
Commit migrated from https://github.com/dotnet/corefx/commit/
f07612542d5d099489792192d6e05fdb21cf808d
David Fowler [Fri, 5 Apr 2019 17:46:09 +0000 (10:46 -0700)]
Added ConfigureAwait(false) to the Stream.ReadAsync call (dotnet/corefx#36621)
* Added ConfigureAwait(false) to the Stream.ReadAsync call
* Make tests less flaky
Commit migrated from https://github.com/dotnet/corefx/commit/
f7adff5131e97cfcdfb76014e34101fd75c5340b
Koundinya Veluri [Fri, 5 Apr 2019 17:25:08 +0000 (10:25 -0700)]
Add a timer test (dotnet/corefx#36576)
Add a timer test
- Separated from https://github.com/dotnet/corefx/pull/35502
- Added test from https://github.com/dotnet/corert/pull/7069 to CoreFX
Commit migrated from https://github.com/dotnet/corefx/commit/
c575bed77090d8e37b466197151acc3c36a959b6
Egor Chesakov [Fri, 5 Apr 2019 17:22:33 +0000 (10:22 -0700)]
Add linux-musl-arm64 RID to Microsoft.Private.CoreFx.NETCoreApp
Commit migrated from https://github.com/dotnet/corefx/commit/
98fdcd739c157d502c718a8a8e67071902b7daef
David Fowler [Fri, 5 Apr 2019 16:58:38 +0000 (09:58 -0700)]
Added PipeWriter.Create(stream) (dotnet/corefx#36620)
- Adds the ability to wrap an existing Stream in a PipeWriter to get the buffer management benefits.
- Added tests
Commit migrated from https://github.com/dotnet/corefx/commit/
3c4cb0e96319e315e62aa92334f837cdd6d43aa6
buyaa-n [Fri, 5 Apr 2019 16:33:57 +0000 (09:33 -0700)]
Fix decoding surrogates on error (dotnet/corefx#36159)
Thank you @GrabYourPitchforks diggin into it and helping to find better solution
Some test falilures on Linux seems not related merging
Commit migrated from https://github.com/dotnet/corefx/commit/
004b31d6f838b51cf28b359607d74644502979e1
Eric StJohn [Fri, 5 Apr 2019 13:04:07 +0000 (06:04 -0700)]
Update Compat pack version and use stable DataSetExtensions (dotnet/corefx#36615)
Commit migrated from https://github.com/dotnet/corefx/commit/
3108747ea756115c20dba8ea2285aa71eccfd026
David Fowler [Fri, 5 Apr 2019 05:12:07 +0000 (22:12 -0700)]
Added PipeReader.Create(stream) (dotnet/corefx#36575)
- Adds the ability to wrap an existing Stream in a PipeReader to get the buffer management benefits.
- Added tests
Commit migrated from https://github.com/dotnet/corefx/commit/
dc965e16c4f71163df9de013951c95916992c908
Ahson Khan [Fri, 5 Apr 2019 04:05:43 +0000 (21:05 -0700)]
Disable Json serializer CacheTests since its failing on linux. (dotnet/corefx#36619)
Commit migrated from https://github.com/dotnet/corefx/commit/
643daf90020831ea4022edff73471faf7163b87f
Egor Bogatov [Fri, 5 Apr 2019 03:10:38 +0000 (06:10 +0300)]
Add System Colors to ColorTable (dotnet/corefx#33520)
* Add system colors to ColorTable
* move SystemColors to System.Drawing.Primitives (from S.D.Common)
* Move SystemColors down to System.Drawing.Primitives
* PR Feedback
Commit migrated from https://github.com/dotnet/corefx/commit/
7ccfaac21e6ec32caa5efcb144abe97432caad5b
Santiago Fernandez Madero [Thu, 4 Apr 2019 20:52:06 +0000 (13:52 -0700)]
Move corefx builds out of temp pools (dotnet/corefx#36421)
Commit migrated from https://github.com/dotnet/corefx/commit/
871c5eae12ce339221ef0329009470c9945e34e5
Tarikul Sabbir [Thu, 4 Apr 2019 20:39:29 +0000 (13:39 -0700)]
Merge pull request dotnet/corefx#34049 from Wraith2/sqlperf-rpc
Optimize SqlClient rpc parameter usage
Commit migrated from https://github.com/dotnet/corefx/commit/
5458fe268482522aa5681f001157ba7c0a451561
Viktor Hofer [Thu, 4 Apr 2019 19:21:10 +0000 (21:21 +0200)]
Consume Microsoft.DotNet.XUnitConsoleRunner for netcoreapp (dotnet/corefx#36587)
* Consume Microsoft.DotNet.XUnitConsoleRunner
Commit migrated from https://github.com/dotnet/corefx/commit/
9c177ab5c7e4c8ca32eba052416be208f422b5df
Jeremy Barton [Thu, 4 Apr 2019 17:09:51 +0000 (10:09 -0700)]
Make Decrypt_WrongKey_OAEP_SHA256 conditional
Commit migrated from https://github.com/dotnet/corefx/commit/
85f3729915071bc61e00c2f442501a8bb68c902e
Steve Harter [Thu, 4 Apr 2019 16:59:35 +0000 (09:59 -0700)]
Avoid serializer multi-threaded cache issues (dotnet/corefx#36549)
Commit migrated from https://github.com/dotnet/corefx/commit/
3a4c464e80c17c3cd4b2e08358db7b457e187818
Jeremy Barton [Thu, 4 Apr 2019 16:12:29 +0000 (09:12 -0700)]
Add tests to ensure that destination is not tainted when decryption fails
Commit migrated from https://github.com/dotnet/corefx/commit/
fadcc8d7a244c44ab7eb63e55bd7657bfa559584
Jeremy Barton [Thu, 4 Apr 2019 16:11:34 +0000 (09:11 -0700)]
Remove the semi-redundant second span variable
Commit migrated from https://github.com/dotnet/corefx/commit/
10db47189406410fb5ea6745afc885ad812f5b1f
Jeremy Barton [Thu, 4 Apr 2019 15:02:44 +0000 (08:02 -0700)]
Provide a temporary RSA decryption buffer when dest is too small
Commit migrated from https://github.com/dotnet/corefx/commit/
d91e6ccfa7a0182a286088e4de7ec1eff1152be4
Viktor Hofer [Thu, 4 Apr 2019 08:51:33 +0000 (10:51 +0200)]
Enable dotnet test by routing to /t:BuildAndTest (dotnet/corefx#36585)
Commit migrated from https://github.com/dotnet/corefx/commit/
a4fe9d1599d3ba16534b19b92657cfaac80a65dd
Tomas Weinfurt [Thu, 4 Apr 2019 05:58:25 +0000 (22:58 -0700)]
limit official build to two alpine releases and add Alpine 3.9 to CI (dotnet/corefx#36392)
* limit official build to two alpine relases and add Alpine 3.9 to CI as linux-musl sample
* remove quotes around friendly name - it seems escaping \'\(\' is enough.
* move musl_x64_Debug
* fix missing space
Commit migrated from https://github.com/dotnet/corefx/commit/
184089d748b705438a117002143ebb4429ce0d97
Tomas Weinfurt [Thu, 4 Apr 2019 03:32:46 +0000 (20:32 -0700)]
OSX can return ENODEV if we attempt tcgetattr() on stdin without terminal (dotnet/corefx#36551)
* OSX can return ENODEV if we attempt tcgetattr() without terminal
* assume no tty if tcgetattr() fails
* feedback from review
Commit migrated from https://github.com/dotnet/corefx/commit/
53c0bae174088c3653391be6cc3c74a1e1f353c1
Viktor Hofer [Wed, 3 Apr 2019 22:55:19 +0000 (00:55 +0200)]
Add additional feed to avoid random restore errors (dotnet/corefx#36569)
* Add additional feed to avoid random restore errors
Commit migrated from https://github.com/dotnet/corefx/commit/
1d8be0f47ba19e87cec4b063f8c406e1469550b7
Viktor Hofer [Wed, 3 Apr 2019 21:22:38 +0000 (23:22 +0200)]
Fix System.IO.Ports configurations and netfx build (dotnet/corefx#36565)
* Fix System.IO.Ports configurations and netfx build
Commit migrated from https://github.com/dotnet/corefx/commit/
e8fa62f1e396a3e07a4d4d8f5a86c6043a3a370b
Eric StJohn [Wed, 3 Apr 2019 19:53:46 +0000 (12:53 -0700)]
Add DataTableExtensions.AsDataView (dotnet/corefx#36528)
* Move most DataSetExtensions code to common
* Add DataTableExtensions.AsDataView
This pushes down the minimal number of types required to implement
DataTableExtensions.AsDataView.
LinqDataView is added in order to implement AsDataView, the following
types need to be pushed down in order to implement this:
- DataSetUtil
- DataTableExtensions
- EnumerableRowCollection
- SortExpressionBuilder
Moving thse down requires that the following also be moved due to needing
internals access to moved types.
- EnumerableRowCollectionExtensions
- OrderedEnumerableRowCollection
- TypedTableBase
- TypedTableBaseExtensions
* Add license to LinqDataView.cs
* Add a couple simple AsDataView tests
* Move remaining types from DataSetExtensions to Common
* Clean up source. CR feedback.
* AsDataView test only NetCoreApp
* Make System.Data.DataSetExtensions inbox, remove package
We pushed all the types down into System.Data.Common, and the facade is
now inbox, so the package only remains meaningful to carry a netstandard2.0
implementation assembly. This assembly is only applicable on older
netcoreapp versions, so rather than ship it from master we'll service
it from the release/2.1 branch.
Commit migrated from https://github.com/dotnet/corefx/commit/
770c50d6251009dee48c0481f3def171301639e4
Jeremy Koritzinsky [Wed, 3 Apr 2019 19:16:54 +0000 (12:16 -0700)]
Remove native string layout checks for Auto since meaning of Auto is not the same for Windows/Unix and the native layout is already tested in other unit tests. (dotnet/corefx#36571)
Commit migrated from https://github.com/dotnet/corefx/commit/
8c1dfe17eaed2999ad89e7c66bb1254e1640dbd0
Sung Yoon Whang [Wed, 3 Apr 2019 03:21:45 +0000 (20:21 -0700)]
fix the existing api instead of adding a new one (dotnet/corefx#36552)
Commit migrated from https://github.com/dotnet/corefx/commit/
355917229c2e5a35b8ea7f14d5d6de2455c5dc1b
Jan Kotas [Tue, 2 Apr 2019 21:41:49 +0000 (14:41 -0700)]
Avoid unnecessary SetLastError on PInvokes (dotnet/corefx#36544)
These console PInvokes are used in nearly every app. Omitting unnecessary SetLastError
will save us from generating marshalling stub for them.
Commit migrated from https://github.com/dotnet/corefx/commit/
ccb68c0602656cea9a2a33f35f54dccba9eef784
Karel Zikmund [Tue, 2 Apr 2019 20:49:15 +0000 (13:49 -0700)]
Update issue-guide.md
Update System.Linq ownership
Commit migrated from https://github.com/dotnet/corefx/commit/
a0e5918d0d1cf2e098f2d2d4bd902373f91fa239
Vance Morrison [Tue, 2 Apr 2019 20:22:22 +0000 (13:22 -0700)]
Support for System.Diagnostics.Activity sampling. (dotnet/corefx#36340)
* Initial implemenation
* Added Reference Assembly and tests.
* Fixed test error
* Fix verifier exception on Desktop
* Build Error Fix
* Fix build error rev 2.
* Fix build rev 3
* Fix build error rev 4
* Fix Build rev 5
* Fix Build rev 6
* remove whitespace
* Fix build errors rev 7
* Move code to fix build
* Fix Build rev 8
* Fixed spelling
* Fix build error caused by merge.
* Fix build rev 9
* added comment
* renamed based on API review
Commit migrated from https://github.com/dotnet/corefx/commit/
43ca5e2aee8c4ada93ab30fc3fd34bb8f4c6224d
Christopher Costa [Tue, 2 Apr 2019 17:53:17 +0000 (10:53 -0700)]
Fix typo
Commit migrated from https://github.com/dotnet/corefx/commit/
44f4102011e45bd4ac25f1c565f333302c2c3740
Ganbarukamo41 [Tue, 2 Apr 2019 17:43:34 +0000 (18:43 +0100)]
Fix System.Drawing.Tests.SystemFontsTests.SystemFont_Get_ReturnsExpected_WindowsNames test for different locales (dotnet/corefx#36192)
* Add another native function, change SetLastError to false
* Fixed so it tests with appropriate test data according to user locale, tests for DefaultFont/DialogFont removed
* Remove unused native function
* Change non-ASCII characters to escape sequences
* Add a single space after the comment header
* Use nameof() instead of string literals for systemFontName
* Remove a using statement that has been added accidentally
* Include more detailed message when throwing an exception
Commit migrated from https://github.com/dotnet/corefx/commit/
158cd903a64aa14b85d06b90ed2e8804c2f2eb11
Viktor [Fri, 29 Mar 2019 17:15:10 +0000 (18:15 +0100)]
Update src folder
Commit migrated from https://github.com/dotnet/corefx/commit/
817c36a05ef2d92e59ce6f5a37e2be50076361b3
Viktor [Fri, 29 Mar 2019 12:15:45 +0000 (13:15 +0100)]
Use Microsoft.DotNet.RemoteExecutor
Commit migrated from https://github.com/dotnet/corefx/commit/
a39f126f85bd045793b231a4df576dd71e0fa413
Wraith2 [Fri, 29 Mar 2019 11:18:14 +0000 (11:18 +0000)]
Combine DbDataReaderExtensions.GetColumnSchema implementations and remove unused facade
Closes dotnet/corefx#36235
Commit migrated from https://github.com/dotnet/corefx/commit/
34d64f4817dacc1ad3d9b7428dfad01401797601
Tomas Weinfurt [Tue, 2 Apr 2019 16:31:25 +0000 (09:31 -0700)]
pull in new fedora images (dotnet/corefx#36537)
Commit migrated from https://github.com/dotnet/corefx/commit/
5796efa5600f3720c356b72c358a7454278df691
Layomi Akinrinade [Tue, 2 Apr 2019 16:11:37 +0000 (12:11 -0400)]
Implement escaped-character handling in Utf8JsonReader and JsonElement (dotnet/corefx#36347)
* Implement escaped-character handling in (Try)GetDateTime(Offset) & (Try)GetGuid in Utf8JsonReader and JsonElement
This addresses https://github.com/dotnet/corefx/issues/36202.
* Address review comments
* Address more comments
* Simplify stackalloc logic
* Update fraction digit cap to 15
* Add (Try)GetGuid to JsonElement
* Address review feedback
* Add FormatException documentation
* Address review feedback
* Address review comments
Commit migrated from https://github.com/dotnet/corefx/commit/
769c5ace33486fecb480c7bf0a572854c9f33375
Steven Kirbach [Tue, 2 Apr 2019 12:35:48 +0000 (05:35 -0700)]
fix "all configurations" build parameter (dotnet/corefx#36535)
looks like this changed at some point from "BuildAllConfigurations" to just "allconfigurations"
Commit migrated from https://github.com/dotnet/corefx/commit/
aa3865a16e4b53a58414a99dc9fcaaee653f59e0
Tomas Weinfurt [Tue, 2 Apr 2019 06:06:34 +0000 (23:06 -0700)]
handle multi-valued headers correctly (dotnet/corefx#35202)
* handle multi-valued headers correctly
* feedback from review
* enable SendAsync_UserAgent_CorrectlyWritten test for HTTP/2
* fix Cookie tests
* feedback from review and test updates
* udpdates from review
* fix itteration
* feedback from review
* remove Streamreader from LoopbackServer
* fix System.Net.WebSockets.Client tests
* feedback from review
* fix tests built for netstandard
* fix one more test
* feedback from review
* feedback from review
Commit migrated from https://github.com/dotnet/corefx/commit/
85cec01822bc70fbc45a25001997b0c1e71b1d22
Steven Kirbach [Tue, 2 Apr 2019 00:08:41 +0000 (17:08 -0700)]
moving PackUriHelper methods to S.IO.Packaging (dotnet/corefx#36493)
* moving PackUriHelper methods to S.IO.Packaging
* moving registration of pack uri scheme to static constructor
* don't build system.io.packaging for netstandard1.3
APIs we use on Uri only exist in netstandard2
* responding to PR feedback and remove netstandard1.3 config
* adding back netstandard1.3 config
* remove system.linq reference
* fix exception message
* fixing whitespace and comment
Commit migrated from https://github.com/dotnet/corefx/commit/
b07788d1f075ff46cc10a8bf61c602d8367301d0
Tomas Weinfurt [Tue, 2 Apr 2019 00:05:51 +0000 (17:05 -0700)]
stabilize Http2GetAsync_TrailerHeaders_TrailingHeaderNoBody test (dotnet/corefx#36534)
Commit migrated from https://github.com/dotnet/corefx/commit/
b0cbc1be82316f768c6d9876f3e566355a93df68
Aaron Robinson [Mon, 1 Apr 2019 23:15:49 +0000 (16:15 -0700)]
Add support for binding to COM objects in WPF (dotnet/corefx#36496)
* Add support for binding to COM objects in WPF
Commit migrated from https://github.com/dotnet/corefx/commit/
be2a1c4b62f8a7886792aaa361ca6b09d8aceaee
Layomi Akinrinade [Mon, 1 Apr 2019 23:15:21 +0000 (19:15 -0400)]
Modify Utf8JsonWriter to write DateTime(Offset) values with the smallest output that roundtrips (dotnet/corefx#35966)
* Modify Utf8JsonWriter to write DateTime(Offset) values with the smallest output that roundtrips
This change addresses https://github.com/dotnet/corefx/issues/34576.
We replace calls to `Utf8Formatter.TryParse`, which formats to the roundtrippable custom format "O", with internal formatting logic that:
- drops the fraction part of the output if the milliseconds part of the date is zero, else
- writes the fraction part up to 7 decimal places with no trailing zeros.
* Format to a stackalloc'd span and then trim it if necessary, then copy to the actual destination
* Address review feedback
* Re-merge trim implementation
* Use DivMod and correct buffer length checks
Commit migrated from https://github.com/dotnet/corefx/commit/
6a0b0acf226c165c6b857de67c2200b01a4afd15
Tomas Weinfurt [Mon, 1 Apr 2019 21:23:13 +0000 (14:23 -0700)]
fixes to CurlHandler to pass on Alpine.39 Docker container (dotnet/corefx#36468)
Fixes to curl to pass on Alpine.39 Docker container.
Fixes dotnet/corefx#36428
Commit migrated from https://github.com/dotnet/corefx/commit/
105b70a2ee48cca52fef404449f350a4be485b40
Hugh Bellamy [Mon, 1 Apr 2019 20:49:16 +0000 (04:49 +0800)]
Introduce new, simpler to use converter test base (dotnet/corefx#35100)
Commit migrated from https://github.com/dotnet/corefx/commit/
9c39db8b96719e36bc7e0c1158e37db0b0f16c85
Wraith2 [Mon, 1 Apr 2019 20:47:16 +0000 (21:47 +0100)]
Merge remote-tracking branch 'dotnet/master' into sqlperf-rpc
Commit migrated from https://github.com/dotnet/corefx/commit/
5b0018a2527717ac9cb2ecc41c71309853d52121
Stephen Toub [Mon, 1 Apr 2019 18:54:21 +0000 (14:54 -0400)]
Add a few WaitHandle.WaitAny/All arg validation tests (dotnet/corefx#36512)
* Add a few WaitHandle.WaitAny/All arg validation tests
* Disable tests on netfx
Commit migrated from https://github.com/dotnet/corefx/commit/
4754d0270b2667ded4a4ff97f71210a8580b146b
Tomas Weinfurt [Mon, 1 Apr 2019 17:38:23 +0000 (10:38 -0700)]
pull in updated fedora image with ping (dotnet/corefx#36523)
Commit migrated from https://github.com/dotnet/corefx/commit/
581fd675f61c8c6163ed0dc13aa3aeb05d64fc1e
Steve Harter [Mon, 1 Apr 2019 17:34:35 +0000 (10:34 -0700)]
Add polymorphic serialization support for typeof(object) (dotnet/corefx#36486)
Commit migrated from https://github.com/dotnet/corefx/commit/
00663e8bf10580ef7b58712af8105a2341b1c8a3
Tomas Weinfurt [Mon, 1 Apr 2019 16:18:23 +0000 (09:18 -0700)]
Add TrailingHeaders support for HTTP/2 (dotnet/corefx#36128)
* add trailing header tests for HTTP/2
* initial implementation
* more fixes and tests
* style cleanup
* feedback from review
* feedback from review
Commit migrated from https://github.com/dotnet/corefx/commit/
57cb805d1fd7b7f602b6dc13a681cc8e726b15df
David Shulman [Mon, 1 Apr 2019 04:17:07 +0000 (21:17 -0700)]
Fix SqlClient Kerberos on Linux (dotnet/corefx#36513)
This PR is a follow-up to PR dotnet/corefx#36329. In that previous PR, I changed to use the
GSS_C_NT_HOSTBASED_SERVICE format for the SPN. That requires using a '@' separator
character instead of a "/". I had assumed since System.Data.SqlClient was including
the source files from Common for SafeDeleteNegoContext.cs that it would have the
corresponding change to use the proper separator character. However, it appears that
the file was only included to get the project building. It was using a separate file
to calculate the SPN.
The customer requiring these fixes reported that Kerberos was working properly now
for HttpClient and NegotiateStream. But SqlClient was still broken.
This PR completes the fix so that SqlClient will work properly with Kerberos especially
in multiple domain/realm environments. This fix was manually tested in the enterprise
scenario test lab.
Commit migrated from https://github.com/dotnet/corefx/commit/
78c4c8bea5121408b0b420c2aa029cdd992a0b26
David Fowler [Mon, 1 Apr 2019 00:19:30 +0000 (17:19 -0700)]
Change Write to fill the remaining Span (dotnet/corefx#36507)
- We made some changes to make the sizeHint a minimum instead of just a hint. This means that passing in a huge buffer could result in a heap allocation if the underlying impl cannot provide a pooled version (like in pipelines or something backed by any MemoryPool impl). Instead of asking for a single contiguous buffer of the remaining input size, just pass 0 as the sizeHint and let the underlying implementation return a buffer to use.
Commit migrated from https://github.com/dotnet/corefx/commit/
2c1cf10610d8102e080b203ff396707eeced15bd
Tomasz Romaszkiewicz [Sun, 31 Mar 2019 15:20:09 +0000 (17:20 +0200)]
Little optimization for TakeLast (dotnet/corefx#36051)
* Implement speed option for TakeLast
* Fix issues, improve Take.SizeOpt
* Remove redundant code.
* Fix redundant if statement case
* Take advantage of ICollection<T>.Count property
* Remove spaces
* Add checkups for non cheap GetCount()
* Renaming and getting rid of ICollection tests.
Commit migrated from https://github.com/dotnet/corefx/commit/
50fc80c8023060d61a826b01733a93840018fe92
Jeremy Barton [Sun, 31 Mar 2019 05:42:42 +0000 (22:42 -0700)]
Build a JsonDocument from an already positioned Utf8JsonReader
Commit migrated from https://github.com/dotnet/corefx/commit/
af82fec3952c5d365bd6b26489d130ad320ebf1a
Tom Deseyn [Sun, 31 Mar 2019 00:28:18 +0000 (01:28 +0100)]
Console: toggle terminal echo based on presence of interactive child processes (dotnet/corefx#35621)
* Console: toggle terminal echo based on presence of interactive child processes
.NET applications echo characters during a Console.Read. By default,
Unix terminals echo characters as the user is typing them.
When a .NET Core application launches an interactive application (e.g. 'vi')
that application expects to find the terminal in an echoing state.
To make both work, corefx was disabling echo during Console.Read operations,
and turning it back on when the read is done.
This changes to echoing while there are interactive applications and not echoing
when there are none.
This means we no longer need to toggle echo off/on for each Console.Read.
And the terminal will no longer echo when there is no Console.Read going on.
* Make some tcsetattr operations non-blocking
* Fix order between changing console settings and SetExited
* Fix unbalanced lock/unlocks
* Cache notty
* Prefer configuring the terminal for Console over child processes
* Update comments
* Rename some 'console' to 'terminal'
* Only decrement when child is using terminal
* Rename ConfigureTerminalForConsole back to In/UninitializeConsoleBefore/AfterRead
* Move some code to original place
* Add some extra comments
* PR feedback
* typo
Commit migrated from https://github.com/dotnet/corefx/commit/
007571b90c3cc555cd30f3b467b87c22f9f665e0
Steve MacLean [Sat, 30 Mar 2019 01:09:47 +0000 (21:09 -0400)]
Disable for coreclrdotnet/corefx#23583
Disable checks of AssemblyLoadContext.Assemblies
until dotnet/coreclrdotnet/corefx#23583 is fixed
Commit migrated from https://github.com/dotnet/corefx/commit/
366dc2c0f2af8830fd7bdcbcc61685695a63e3ea
Steve MacLean [Thu, 28 Mar 2019 21:09:50 +0000 (17:09 -0400)]
Amend ALC tests
Add simple assertions to test:
Test new public constructor
Test instantiating AssemblyLoadContext as a concrete type
Test All
Test Name
Test ToString
Test Assemblies
Commit migrated from https://github.com/dotnet/corefx/commit/
3db3261f39945567d818b10a562acf86d334e07a
Santiago Fernandez Madero [Fri, 29 Mar 2019 21:33:58 +0000 (14:33 -0700)]
Move package testing to RS5 (less busy queue)
Commit migrated from https://github.com/dotnet/corefx/commit/
512cde947d9e4345ef3bd5f75da0bc18b808b836
Jeremy Barton [Fri, 29 Mar 2019 23:31:29 +0000 (16:31 -0700)]
Add JsonElement.WriteAs{Property|Value}
These methods allow sending a JsonElement to a Utf8JsonWriter, respecting its options for formatting the content.
Commit migrated from https://github.com/dotnet/corefx/commit/
d3eed78a3765aef0325384c61a4593570ae3622b
Afsaneh Rafighi [Fri, 29 Mar 2019 22:43:54 +0000 (15:43 -0700)]
Merge pull request dotnet/corefx#34573 from Wraith2/sqlperf-envchange
SqlClient enviroment change optimization
Commit migrated from https://github.com/dotnet/corefx/commit/
6977dddc03f8263ad82228558eb9b02e2e6f530c
Tanner Gooding [Fri, 29 Mar 2019 21:47:04 +0000 (14:47 -0700)]
Moving the System.Runtime.Intrinsics.Arm namespace into System.Runtime.Intrinsics.Experimental (dotnet/corefx#36466)
* Pulling the System.Runtime.Intrinsics.Arm namespace out of System.Runtime.Intrinsics
* Moving the System.Runtime.Intrinsics.Arm namespace into System.Runtime.Intrinsics.Experimental
* Adding an entry for S.R.I.Experimental to the pkg/descriptions.json
* Adding a project reference from S.R.I.Experimental to S.R.Intrinsics
* Adding IgnoreTypes entries for the System.Runtime.Intrinsics.Arm.Arm64 namespace
Commit migrated from https://github.com/dotnet/corefx/commit/
84e89f69c7f00e44bae5d960784bbc829b6f8feb
Dan Moseley [Fri, 29 Mar 2019 21:40:55 +0000 (14:40 -0700)]
Increase timeout for 2 socket option name tests (dotnet/corefx#36485)
* Increase timeout for 2 socket option name tests
* More
Commit migrated from https://github.com/dotnet/corefx/commit/
785423a8831f9b68aaa99cedf08df8f98439b434
Stephen Toub [Fri, 29 Mar 2019 21:40:05 +0000 (17:40 -0400)]
Improve StaticTestGenerator and fix some visibility (dotnet/corefx#36472)
Worked through a bunch of additional assemblies and fixed cases where StaticTestGenerator was doing the wrong thing. Also fixed the visibility on a bunch of test methods it wasn't able to access.
Commit migrated from https://github.com/dotnet/corefx/commit/
475542441df2f054d5e9aa39576019775a5d2f52
Tomas Weinfurt [Fri, 29 Mar 2019 21:16:43 +0000 (14:16 -0700)]
add instrumentation to PingResultValidator (dotnet/corefx#36489)
Commit migrated from https://github.com/dotnet/corefx/commit/
68d3220f239c10001005bc0b2dad511ff262f285
Wraith2 [Fri, 29 Mar 2019 20:52:29 +0000 (20:52 +0000)]
Merge remote-tracking branch 'dotnet/master' into sqlperf-envchange
Commit migrated from https://github.com/dotnet/corefx/commit/
63434297df1d18b7289669120eeaadc0849c1ad7
Matt Galbraith [Fri, 29 Mar 2019 20:31:56 +0000 (13:31 -0700)]
Fix extra ' character
Commit migrated from https://github.com/dotnet/corefx/commit/
7de3b64e231b1b2d74c1fb7dadb753a40c1a949e
Maryam Ariyan [Fri, 29 Mar 2019 18:19:11 +0000 (11:19 -0700)]
Add ReadOnlySequence<T>.FirstSpan (dotnet/corefx#36194)
* Add ReadOnlySequence<T>.FirstSpan
Fixes: dotnet/corefx#33029
Commit migrated from https://github.com/dotnet/corefx/commit/
8292e4556eae08f497e3d8666c001b5ea75f0d3b
Matt Galbraith [Fri, 29 Mar 2019 17:12:42 +0000 (10:12 -0700)]
Merge pull request dotnet/corefx#36471 from dotnet/use-more-docker
Update docker usage and EOL Fedora 27
Commit migrated from https://github.com/dotnet/corefx/commit/
5340f987d8e665fe105934b8f09cb7799a58702d
Matt Galbraith [Fri, 29 Mar 2019 16:26:51 +0000 (09:26 -0700)]
switch CI back to regular fedora 28, as the docker image has some network config stuff we need to figure out
Commit migrated from https://github.com/dotnet/corefx/commit/
2ac692d1ac7aa4c7196ca1230249397c4d56d3e2
Layomi Akinrinade [Fri, 29 Mar 2019 16:23:08 +0000 (12:23 -0400)]
Add DateTimeOffset converter to JsonSerializer (dotnet/corefx#36372)
* Add DateTimeOffset converter to JsonSerializer
Also, use reader/writer parsing/formatting methods for DateTime(Offset) converters.
* Remove duplicate unexpected string exception assertions
Commit migrated from https://github.com/dotnet/corefx/commit/
864bc8a12dfcd561f79820641f60cb96d6c81512
Essam Almohammadi [Mon, 18 Mar 2019 17:53:54 +0000 (18:53 +0100)]
Add string overloads to DbDataReader.Get*() as extensions
Also, add `GetFieldValueAsync<T>()` and `IsDBNullAsync()` string overloads.
Addresses dotnet/corefx#31595
Commit migrated from https://github.com/dotnet/corefx/commit/
ff56b16493fdd07dc8be323ffd8c8fa4075ec8eb
Matt Galbraith [Fri, 29 Mar 2019 16:05:54 +0000 (09:05 -0700)]
Add Fedora 29; will still need to figure out the failures in two networking tests
Commit migrated from https://github.com/dotnet/corefx/commit/
2012d05b1aa185af369801ef5124ac2ae5941c3f
Matt Galbraith [Fri, 29 Mar 2019 01:02:23 +0000 (18:02 -0700)]
Update linux.yml
Remove Fedora 27 (EOL), move Fedora 28 and Alpine 3.6/3.8 to docker tags
Commit migrated from https://github.com/dotnet/corefx/commit/
fa2bdab2227fb2e9ac99667a8fd5f0cc7d20a0a5
Karel Zikmund [Fri, 29 Mar 2019 00:53:43 +0000 (17:53 -0700)]
Update issue-guide.md
Typo
Commit migrated from https://github.com/dotnet/corefx/commit/
c141b8c7aed44817baad190d35d0f29408eb3f7a
Steve MacLean [Thu, 28 Mar 2019 18:21:14 +0000 (14:21 -0400)]
Update ApiCompatBaseline.uapaot.txt
Commit migrated from https://github.com/dotnet/corefx/commit/
7c0e40bd2377b78e82ef0c1780bae80f03e29778
Steve MacLean [Thu, 28 Mar 2019 16:02:54 +0000 (12:02 -0400)]
Update AssemblyLoadContext ref assembly
Fixes dotnet/corefx#34791
Commit migrated from https://github.com/dotnet/corefx/commit/
c42e9e46ea5ec4d706748bec89776951df5292d7
Michal Strehovský [Thu, 28 Mar 2019 20:26:07 +0000 (21:26 +0100)]
Fix IBC data embedding (dotnet/corefx#36450)
An arcade change broke IBC data embedding and we were not doing it.
This fixes that issue and also bumps embedded IBC from being `partial` to `full`.
Commit migrated from https://github.com/dotnet/corefx/commit/
719eee95faa5d638bf9959f263b428dc69a2f234
Santiago Fernandez Madero [Thu, 28 Mar 2019 18:00:25 +0000 (11:00 -0700)]
Disable push to myget and increase publish timeout (dotnet/corefx#36458)
Commit migrated from https://github.com/dotnet/corefx/commit/
98dacbcbfd8853f1fdedf84e6b33acd3998ab899
Max Kerr [Thu, 28 Mar 2019 17:31:18 +0000 (10:31 -0700)]
HTTP2: Don't send RST_STREAM in response to window update on closed stream (dotnet/corefx#36410)
Commit migrated from https://github.com/dotnet/corefx/commit/
b867bfef3f7e3951b47134c75ebbaae0a5ca9dd3
Dávid Kaya [Thu, 28 Mar 2019 13:56:08 +0000 (00:56 +1100)]
Added support for UF_HIDDEN flag on macOS and FreeBSD (dotnet/corefx#29323) (dotnet/corefx#34560)
* Added support for UF_HIDDEN flag on macOS and FreeBSD (dotnet/corefx#29323)
* Changes based on review
* Reverted UserFlags field
* Sorted include in csproj
* Changed comparison style
* Reverted UserFlags field
* Fixed parentheses
* Changes based on PR review
* Add missing newline
* Add missing newline
Commit migrated from https://github.com/dotnet/corefx/commit/
b37f0185ac05c9431389f333f5b2b0fc5fe93e6a
Stephen Toub [Thu, 28 Mar 2019 13:46:43 +0000 (09:46 -0400)]
Add standalone test runner generator utility (dotnet/corefx#36434)
A console app that reflects over a corefx test assembly and generates another console app that can invoke most of the tests without any reflection and minimal additional code execution. This is helpful when bringing up new platforms.
Commit migrated from https://github.com/dotnet/corefx/commit/
ea48dae8a957f189c9812cc13ebaec8237dc6bc7
Stephen Toub [Thu, 28 Mar 2019 03:08:19 +0000 (23:08 -0400)]
Add standalone test runner generator utility
A console app that reflects over a corefx test assembly and generates another console app that can invoke most of the tests without any reflection and minimal additional code execution. This is helpful when bringing up new platforms.
Commit migrated from https://github.com/dotnet/corefx/commit/
8a3a8c826d4ab9d0be1da11da13f586e4259c3cc
Jan Kotas [Thu, 28 Mar 2019 05:37:22 +0000 (22:37 -0700)]
Move QueryPerformanceCounter PInvokes to shared (dotnet/corefx#36409)
Commit migrated from https://github.com/dotnet/corefx/commit/
560dbe850a77d51437039495b87b1819d1f7a5b2
Tarek Mahmoud Sayed [Thu, 28 Mar 2019 05:36:19 +0000 (22:36 -0700)]
Fix Korean Calendar Test (dotnet/corefx#36429)
Commit migrated from https://github.com/dotnet/corefx/commit/
24995ed7dbfdf7aa284197fa77e9d619e3d60a14
Stephen Toub [Thu, 28 Mar 2019 05:33:06 +0000 (01:33 -0400)]
Fix more test visibility issues (dotnet/corefx#36435)
Commit migrated from https://github.com/dotnet/corefx/commit/
3356cc71c5b125ce6f721ed37c23f7ca51c95178
Tomas Weinfurt [Thu, 28 Mar 2019 04:24:17 +0000 (21:24 -0700)]
increase max test duration from 10 to 15 minutes (dotnet/corefx#36432)
Commit migrated from https://github.com/dotnet/corefx/commit/
b98aad34981a3d8c45edee4aee99a99a02b3bb80
Steven Kirbach [Wed, 27 Mar 2019 21:13:38 +0000 (14:13 -0700)]
Merge pull request dotnet/corefx#36389 from dotnet/dev/stevenbrix/addBackSupportForIncrementalParts
ensuring that calling GetPart will call GetPartCore
Commit migrated from https://github.com/dotnet/corefx/commit/
3862b1bf2f5bdd5c7c5f77e64cd23dffe5ebb9d0
Jeremy Koritzinsky [Wed, 27 Mar 2019 20:25:12 +0000 (13:25 -0700)]
Fix inverted initialization check.
Commit migrated from https://github.com/dotnet/corefx/commit/
a009ac0f0dc42ae0eb5752a7d602b784eb563bc5
Steven Kirbach [Wed, 27 Mar 2019 20:14:49 +0000 (13:14 -0700)]
pr feedback
Commit migrated from https://github.com/dotnet/corefx/commit/
14cb70116924fbbfd15c3fdc6a069833a7d37108