Commit Graph

274 Commits

Author SHA1 Message Date
Justin Kotalik 57092e96ac
Implement Kestrel Request PipeReader (#7603) 2019-02-22 08:26:23 -08:00
Stephen Halter 001b6ea08a
Use .NET Core SequenceReader (#7003)
* Use .NET Core SequenceReader

Remove BufferReader and use SequenceReader<T> which now ships in CoreFX.

This is related to https://github.com/aspnet/KestrelHttpServer/pull/3068 which builds on the functionality added to the reader.

* Use var
2019-02-20 14:39:45 -08:00
Nate McMaster 9a2db43848
Follow-up to VS2019 conversion (#7753)
* Set VS version in file to 16.0.0.0
* Fix for restore failure on Microsoft.AspNetCore.App.Runtime.csproj
2019-02-20 11:02:38 -08:00
Nate McMaster 85ae18c723
Make Visual Studio 2019 a prerequisite to building this repo (#7005)
Changes:

* Make Visual Studio 2019 a prerequisite for building this repo
* Update .sln files
* Update Windows SDK to 17134
* Update developer docs
* Disable ANCM tests
* Update to .NET Core SDK 3.0 Preview 2
* Use Microsoft.NET.Sdk.Razor as a package consistently accross the repo
* React to changes in metadata from Microsoft.NETCore.App
* React to changes in .NET Core SDK
* Attempt to workaround CodeCheck.ps1 failure which doesn't repro locally or on different agents. Possibly due to differences in the version of the PowerShell task?
* Remove dead YML file
* Rename usages of win7-{x64,x86} to win-{x64,x86}
* Update KoreBuild to 3.0.0-build-20190219.1
2019-02-20 09:53:53 -08:00
Chris Ross 4e44025a52
Replace IHostingEnvironment with IWebHostEnvironment (#7725) 2019-02-19 21:11:52 -08:00
Doug Bunting 3e0c75187c
Place limits on model binding collection size and recursion depth (#7214)
- #7052
- add MvcOptions.MaxModelBindingCollectionSize` and `MvcOptions.MaxModelBindingRecursionDepth`

nits:
- update syntax of a few `Resources.Designer.cs` files (I ran `/t:resx` on Mvc.sln)
- take VS suggestions in a few test classes
2019-02-19 15:17:56 -08:00
Ben Adams 3e47fa7c69 Inline BufferWriter .ctor (#7674) 2019-02-17 21:30:29 -08:00
Ben Adams 6b7e821913 Don't hardcode fixed size for GetMemory in ChunkedTests 2019-02-17 09:29:57 -08:00
Justin Kotalik 49a720c1dc Fix GetMemory to not pass in size hint 2019-02-17 09:29:57 -08:00
Ben Adams 639d290b19 Lock-free IOQueue (#6154)
Second half of https://github.com/aspnet/AspNetCore/pull/4060
2019-02-15 18:26:30 -08:00
Chris Ross 191fb03de7
ITlsHandshakeFeature requires Win8+ (#7629) 2019-02-15 16:28:04 -08:00
Chris Ross 93a24b03bb
Disable AllowSynchronousIO by default in all servers #4774 (#5120)
* Disable AllowSynchronousIO by default in all servers
2019-02-15 16:05:49 -08:00
Pavel Krymets 9afdc48f13
Disable remote symbol loading for dump files in CI (#7620) 2019-02-15 14:42:36 -08:00
Chris Ross cc62bcebfc
Skip HttpSys.Https tests on Helix Internal/#1816 (#7578) 2019-02-15 12:33:23 -08:00
Pavel Krymets 6bafb7cb6f
Log before releasing streams and firing tokens (#7583)
Might fix: https://github.com/aspnet/AspNetCore-Internal/issues/1659

I think writes complete too fast so we don't observe when the message gets logged
2019-02-15 10:41:21 -08:00
Justin Kotalik 25f1f59378
Make first write use the same BufferWriter (#7505) 2019-02-15 08:26:57 -08:00
Chris Ross 44e6813452
Use new version of h2spec #6691 (#7559) 2019-02-14 09:28:58 -08:00
Stephen Halter 132a1ad31b
Remove capture of "this" from local function (#7467) 2019-02-14 00:21:39 -08:00
Pranav K 27e54a1b7a Skipping flaky test 2019-02-13 16:45:36 -08:00
Jeremy Kuhne a02ac20183 Use var 2019-02-13 16:20:34 -08:00
Jeremy Kuhne 2c649b2409 Use .NET Core SequenceReader
Remove BufferReader and use SequenceReader<T> which now ships in CoreFX.

This is related to https://github.com/aspnet/KestrelHttpServer/pull/3068 which builds on the functionality added to the reader.
2019-02-13 16:20:34 -08:00
Nate McMaster 338de4710a
Automatically set 'PrivateAssets=All' for .Sources references (#7539)
When a `<Reference>` is named `*.Sources`, set PrivateAssets=All (exclude from generated nuspec) and IncludeAssets=ContentFiles (only consume content files, not .dll's)
2019-02-13 14:31:15 -08:00
Pranav K cddbc2e888
Improve Components error handling (#7165)
* Improve Components error handling

* Change event handlers IHandleEvent, IHandleAfterEvent to be async.
* Return faulted tasks to Renderer instead of handling exceptions in ComponentBase
* Use ILogger in RemoteRenderer, and log to console in WebAssemblyRenderer
* Cleaning up touched files

Fixes https://github.com/aspnet/AspNetCore/issues/4964
2019-02-13 14:22:46 -08:00
Chris Ross 06d7fe73a9
Implement ITlsHandshakeFeature for HttpSys (#7284) 2019-02-13 08:39:45 -08:00
Nate McMaster 3fd8a97af2
Add targets to generate the list of shared framework assemblies from project property (#7510)
Changes:
* Add support for a property, `IsAspNetCoreApp`, in the .csproj file of assemblies which are part of the shared framework. 
* Remove unused dependencies
* Remove reference which have become part of 'netcoreapp3.0'
2019-02-12 23:00:19 -08:00
Justin Kotalik e5f31f264c Another spot 2019-02-11 15:10:30 -08:00
Justin Kotalik 371c29577b Another spot 2019-02-11 14:42:02 -08:00
Justin Kotalik 84cdac952a AsTask => GetAsTask() 2019-02-11 13:58:25 -08:00
David Fowler a5ba735a0f
Remove PlatformBenchmarks from sln (#7440) 2019-02-11 12:38:20 -08:00
Pavel Krymets 037a5b0231
Add more logging to a failing tests and move dumps to logs directory (#7462) 2019-02-11 12:14:05 -08:00
Ben Adams 3276870d6a Remove unnecessary Flush (#7424) 2019-02-11 11:02:00 -08:00
Ben Adams 6d42ff7c38 Don't write empty data for Flush (#7415) 2019-02-11 11:01:36 -08:00
Ben Adams 704094b199 Use C#7.3's ReadOnlySpan<byte> optimization for static data (#7422) 2019-02-11 07:40:40 -08:00
Martin Costello e465013063 Remove local item group (#7412)
Remove local development item group accidentally added by #7110.
2019-02-09 12:13:32 -08:00
David Fowler 8f49bdf195
More efficient preface parsing (#7406)
- Slice before turning the buffer into a Span
- Use SequenceEqual instead of a loop
2019-02-08 21:13:42 -08:00
Justin Kotalik 35b99e44ce
Expose HttpResponse PipeWriter in Kestrel (#7110) 2019-02-08 17:24:26 -08:00
Ben Adams b2f850aa82 Remove extraneous call to GetMemory (#7379) 2019-02-08 08:06:17 -08:00
Chris Ross efb5923120
Enable verbose h2spec logs (#7361) 2019-02-08 08:03:42 -08:00
Andrew Arnott 3d4b198990 Add xml doc comments for BufferWriter struct (#7350) 2019-02-07 18:33:03 -08:00
Hao Kung 26acbc3861
Reorganize helix files (#7353) 2019-02-07 16:27:48 -08:00
Stephen Halter a677464ed0 Merge branch 'release/2.2' 2019-02-07 15:41:08 -08:00
Andrew Arnott 21177671b6 Remove extraneous call to GetMemory in BufferWriter (#7354)
The BufferWriter called GetMemory(count) and dropped the result, only to then call GetSpan(). This moves the count argument to GetSpan, and drops the call to GetMemory.
2019-02-07 15:31:33 -08:00
John Luo 92f21dbda0
Unset reserved bit when setting 31 bit uint values (#7339)
* Unset reserved bit when setting 31 bit uint values

* Add FrameWriter tests

* Add overload
2019-02-07 12:50:53 -08:00
Stephen Halter 9c41d5b48f
Fix flaky CanUpgradeRequestWithConnectionKeepAliveUpgradeHeader test (#7323)
* Randomize MockSystemClock
2019-02-07 11:56:10 -08:00
Hao Kung c9499e14e4
Run helix tests on master (#6728) 2019-02-07 09:20:08 -08:00
John Mazouri 2345c837ce Fix typo in HttpSysOptions.cs (#7207)
`infiniate` => `infinite` in ArgumentOutOfRangeException message.
2019-02-07 09:19:22 -08:00
Pavel Krymets 5cd72c1fb2
Remove ANCMV1 from everywhere (#7334) 2019-02-07 09:06:27 -08:00
Justin Kotalik 07ef2d881f
Remove misleading websocket error log (#7249) 2019-02-07 08:26:10 -08:00
BrennanConroy 744a32a750
SignalR C++ tests passing and part of build (#7160) 2019-02-06 17:23:23 -08:00
Pavel Krymets 0211e894fe
Use Win32 as native platform (#7309) 2019-02-06 12:17:55 -08:00