Commit Graph

2228 Commits

Author SHA1 Message Date
Nate McMaster e5c501099a
Remove unused .Source packages 2018-07-11 21:33:51 -07:00
Nate McMaster 1d9db7c25f
Merge 2.1.2 into release/2.1 2018-07-10 10:34:35 -07:00
Nate McMaster bf03fee4be
Refactor LZMA generation to support Docker and Antares usage
List explicitly as .csproj files the scenarios for which the offline package cache is important

Produces new artifacts designed for various scenarios, such as:
 * Docker (where xml doc files are not needed)
 * Azure web apps (where 1.x SDKs must still be supported, but xml docs are not needed)
2018-07-06 13:15:23 -07:00
Nate McMaster 9273759dca
[2.1]: Remove unused project capability from Microsoft.AspNetCore.App (#1237)
Removing this from .App in 2.1.3 because this was unused, and the capability is not actually supported by VS. This will be re-added in the future versions of .App when we land the VS integration for in-process hosting.

cref https://github.com/aspnet/IISIntegration/pull/969
2018-06-29 11:02:39 -07:00
Stephen Halter ac31e5ab30
[2.1.3] Consistently handle connection aborts (#2619)
* Decouple connection objects from the server (#2535)

- Making progress towards being able to use the connection objects on the client side.

* Wait for input writer to complete before calling OnConnectionClosed (#2566)

* Wait for the ConnectionClosed token to stop tracking connections (#2574)

- The prior strategy of waiting for the pipe completed callbacks doesn't work
  because blocks are returned to the memory pool after the callbacks are fired.

* Consistently handle connection resets (#2547)

* Provide better connection abort exceptions and logs

* void IConnectionDispatcher.OnConnection
2018-06-28 10:51:22 -07:00
Nate McMaster 91a1d2de50
Add unit tests for the shared framework (#1228)
Changes:
* Add a test project with simple unit tests for the shared framework
* Add root-level Directory.Build.props/targets files
* Cleanup .csproj files to reduce duplication
2018-06-27 14:56:10 -07:00
Ryan Brandenburg 78fc556758 Set 2.1 baselines 2018-06-14 11:36:27 -07:00
Ryan Brandenburg 7922b27c65 Set 2.1 baselines 2018-06-14 10:06:06 -07:00
Ryan Brandenburg b7c722bb68 Set 2.1 baselines 2018-06-14 09:37:25 -07:00
Ryan Brandenburg 5bed1972fe Set 2.1 baselines 2018-06-13 15:47:53 -07:00
Nate McMaster ff3f0e905d
Merge branch 'release/2.1' into release/2.1.2 2018-06-12 14:16:29 -07:00
Stephen Halter e4d290b601
Fix Json regression in Socket Transport (#2578) 2018-05-31 16:28:25 -07:00
Stephen Halter d1416e679b
[2.1.1] Provide clearer exception message for breaking change (#2623)
- In 2.1, the default transport (Sockets) can no longer bind to certain
  endpoint types (Unix domain sockets and open socket handles).
- The new message recommends manually selecting the libuv transport
  to work around this issue.
2018-05-31 15:45:26 -07:00
Stephen Halter af177c5adc
Add Memory<byte> overloads to HttpUpgradeStream (#2622) 2018-05-31 15:44:39 -07:00
Stephen Halter 9e15b2bca4
Fix PipeReader consumption pattern [2.1] 2018-05-31 11:27:38 -07:00
Stephen Halter 5ec7bacdfe
Lower severity of AuthenticationException logs from SslStream handshake (#2614) 2018-05-29 16:27:16 -07:00
Stephen Halter da21fc89cf
Handle exception in SocketConnection.Shutdown() (#2562) 2018-05-10 23:39:06 -07:00
Stephen Halter e6a88c1b9c
Relieve response backpressure immediately when closing socket (#2557)
* Relieve response backpressure immediately when closing socket
2018-05-10 17:13:57 -07:00
Nate McMaster 05d68efbae
Merge branch 'release/2.1.0-rc1' into release/2.1 2018-05-07 14:35:41 -07:00
Stephen Halter 5c17bff55d
Don't throw on FIN from upgraded connections (#2533)
* Allow app to drain request buffer after FIN
2018-05-04 16:21:07 -07:00
Pavel Krymets 361caff1ad
Remove managed InProcess code (#809) 2018-05-03 17:18:33 -07:00
Nate McMaster d6f15759fd
Add property to allow the SDK to disable shared framework trimming (#1130)
The MicrosoftNETPlatformLibrary property instructs the .NET Core SDK to treat a particular package as the shared framework platform. This affects how the SDK will trim references and publish output, determines how the runtimeconfig files are generated, and may affect how optimizations are preformed by other tools. In some installations of .NET Core, the ASP.NET Core shared framework is not available. This change adds properties to let the SDK determine on which platforms ASP.NET Core is enabled.
2018-05-02 08:49:03 -07:00
Nate McMaster e0e9eb0b36
Add pre-generated shims to dotnet tool packages 2018-05-01 16:57:36 -07:00
Stephen Halter b0e1fa5e30 Fix connection abort 2018-04-23 17:01:49 -07:00
Ajay Bhargav Baaskaran aa181128ac Generate symbol nupkgs for tools 2018-04-20 15:10:03 -07:00
Ryan Brandenburg 3c40b9efd2 Merge remote-tracking branch 'origin/release/2.1' into rybrande/MergeRelease21IntoDev 2018-04-16 14:24:13 -07:00
Stephen Halter 6fd09af374
Improve logging of request drain timeout (#2480) 2018-04-16 11:53:10 -07:00
Andrew Stanton-Nurse 3a45136cc4
make IConnectionInherentKeepAliveFeature a boolean feature (#2496) 2018-04-16 11:34:06 -07:00
Ben Adams e30a02cee5 Less StringValue struct copies for header checks (#2488) 2018-04-13 18:21:50 -07:00
Nate McMaster faf2f3f065
Attempt to workaround issues with File.Move on NFS file shares (aspnet/Home#2941) 2018-04-13 15:08:28 -07:00
John Luo 2d51d23697 Add file logging to functional tests 2018-04-13 14:53:57 -07:00
Stephen Halter 10f3b6863e
Avoid nullref in KestrelEventSource (#2483)
* Avoid nullref in KestrelEventSource
* Improve HostNameIsReachableAttribute to speed up test discovery
2018-04-12 17:29:34 -07:00
Justin Kotalik 4188d2fe68
sttimer changes to V2 (#773) 2018-04-12 17:11:38 -07:00
pan-wang 9c83280770
Fixing couple issues (#763)
adding more logs and fix memory leak in case of configuration change and then shutdown
2018-04-12 14:10:25 -07:00
Chris Ross (ASP.NET) ee12c4fcf2 Downgrade HTTPs handshake failures to debug #1853 2018-04-12 09:25:44 -07:00
Chris Ross (ASP.NET) c6fa9793eb Make Protocols internal 2018-04-12 08:53:27 -07:00
David Fowler ca44b4adfc
Moved kestrel specific features into transport abstractions (#2482) 2018-04-11 20:23:48 -07:00
David Fowler f6b2880369
Flow the ConnectionContext to the SNI callback (#2478) 2018-04-11 15:56:25 -07:00
Sébastien Ros e8bb88cb58
Fixing typo (#2477) 2018-04-11 14:27:53 -07:00
Nate McMaster b7b6bd9533
React to updates in dependencies and removal of System.Runtime.CompilerServices.Unsafe from netcoreapp (#429) 2018-04-11 09:59:22 -07:00
Justin Kotalik e2fbff2bd5 Feedback 2018-04-10 23:00:18 -07:00
Justin Kotalik 46efcd9332 Move srwWrapper to right location 2018-04-10 14:43:05 -07:00
Justin Kotalik 5c91dbe062 Get tests working 2018-04-10 14:21:23 -07:00
Justin Kotalik da513bd8d8 Get build.cmd working and cleanup ignored files. 2018-04-10 14:21:00 -07:00
Justin Kotalik df9efa0770 Code changes to get ANCM current working on github 2018-04-10 14:19:53 -07:00
Justin Kotalik b594130020 Adds source code from VSTS 2018-04-10 14:19:53 -07:00
Pavel Krymets 157e7f4fdd Creates two separate projects for ANCM V1 and V2. 2018-04-10 14:19:32 -07:00
Pavel Krymets 6629236a0e
Merge pull request #767 from aspnet/pakrym/perf
Improve performance
2018-04-10 12:07:26 -07:00
Pavel Krymets d63e8c5558 CPP 2018-04-10 11:04:34 -07:00
Pavel Krymets ee2e46a614 What about now? 2018-04-10 09:08:13 -07:00
Pavel Krymets 80e799d17c PR comments 2018-04-10 08:30:37 -07:00
David Fowler b030ab7e49
Update Connections.Abstractions.csproj (#2473) 2018-04-09 17:55:14 -07:00
Pavel Krymets e32b51d6e6 ENdpoint 2018-04-09 16:47:01 -07:00
Pavel Krymets f0eab4410a Cleanup 2018-04-09 15:20:28 -07:00
Pavel Krymets 7a14be006d Fast reads 2018-04-09 15:16:47 -07:00
Pavel Krymets 5e5aa90575 Remove continue with 2018-04-09 14:26:28 -07:00
Pavel Krymets 0feb83b637 Dont format some things 2018-04-09 12:10:32 -07:00
Pavel Krymets dca31cc6f6 Perf 2018-04-09 10:34:44 -07:00
Pavel Krymets 8f1781f7eb Cleanup LogEvent calls 2018-04-08 19:21:55 -07:00
David Fowler 4760cce6aa
Remove IConnection (#2472) 2018-04-07 18:55:59 -07:00
Justin Kotalik 47c7c1ad8f
Disable global loading of RequestHandler for in-process (#732) 2018-04-05 10:36:15 -07:00
Chris Ross (ASP.NET) 2ee0d6e337 Delay loading the dev cert #2422 2018-04-04 14:54:27 -07:00
Chris Ross (ASP.NET) 953496a970 Merge branch 'release/2.1' into dev 2018-04-04 13:44:56 -07:00
Chris Ross (ASP.NET) 9ea2c50068 Add SNI support #2357 2018-04-04 12:49:29 -07:00
Andrei Amialchenia 70ce044778 Corrects spelling of some comments (#2461) 2018-04-03 15:55:17 -07:00
Pavel Krymets 81bf9fb66b
Merge release/2.1 into dev (#421) 2018-04-03 10:45:34 -07:00
Pavel Krymets ba06c58bcb
Merge release/2.1 into dev (#2460) 2018-04-03 10:45:31 -07:00
Pavel Krymets 5210323385 Merge release/2.1 into dev 2018-04-03 10:11:36 -07:00
Stephen Halter 623c27ab01
Dispose SocketAsyncEventArgs when we dispose the Socket (#2459) 2018-04-02 19:48:17 -07:00
Pavel Krymets ba2b883db0
Reaction to *Memory changes (#2446) 2018-04-02 16:44:13 -07:00
David Fowler 6b183c5ac0
Use 4K as the minimum segment size (#2452)
- This normalizes the behavior for kestrel no matter what memory pool implementation is used. The transports should behave the same (ask for 1/2 full blocks) across pool implementations.
- Declare the minimum segment size in KestrelMemoryPool
- Updated the AdaptedPipeline to use MinimumSegmentSize / 2
2018-04-02 16:14:40 -07:00
Nate McMaster 6d4a632b96
Fix race condition in test code waiting for dotnet-watch to restart 2018-04-02 10:10:57 -07:00
David Fowler a37fa83aee
Fixed a parser bug found when trying out the array pool (#2450)
- When using the array pool, we get terrible block density and as a result
the header parser was failing.
- This fixes the case where the parser needed to skip 2 blocks at the end
(which is unrealistic). Comparing the current index to the reader index is incorrect
since we may end up at the same index in another segment.
2018-04-01 00:04:02 -07:00
David Fowler 7382198356
Copy connection middleware when using ListenLocalHost (#2447)
- Connection middleware got removed during Clone when using ListenLocalhost
2018-03-31 07:29:35 -07:00
Pavel Krymets 6ca61a8fc7 Merge release/2.1 to dev 2018-03-30 16:33:44 -07:00
Andrew Stanton-Nurse 2c2a8dae01
Merge pull request #2445 from aspnet/release/2.1
Add IConnection to Connections.Abstractions (#2444)
2018-03-30 15:21:48 -07:00
David Fowler 67cb8a0e11 Add IConnection to Connections.Abstractions (#2444) 2018-03-30 15:20:31 -07:00
Justin Kotalik fd6c217336 Revert "Build runtime specific metapackages"
This reverts commit ec184bc361.
2018-03-30 13:02:45 -07:00
David Fowler 9eb41ca571
Remove buffer size argument (#232)
- We're removing the buffer arugment from the API as a result of a mini review. This is a pre-emptive reaction to avoid breakage when the change comes in.
2018-03-30 10:47:12 -07:00
David Fowler 46ab09ca36 Merge branch 'release/2.1' into dev 2018-03-27 02:08:35 -07:00
David Fowler be04ccac6e
Move DuplexPipe into Kestrel.Core as internal (#2428) 2018-03-27 02:02:15 -07:00
Stephen Halter 68ff406862 Merge branch 'release/2.1' into dev 2018-03-26 14:51:21 -07:00
Stephen Halter a1de323ff4
Make LibuvTransport(Factory) pubternal (#2426) 2018-03-26 11:39:51 -07:00
David Fowler f0629dcbe4 Merge branch 'release/2.1' into dev 2018-03-24 03:14:59 -07:00
David Fowler 6701339835
Expose DefaultConnectionContext POCO (#2421)
- Made TransportConnecton derive from ConnectionContext
- Less objects, less opinions about what the ConnectionContext is. This diverges from what we do with HttpContext but it seems better overall.
- Made DefaultConnectionContext
 - Usable for unit testing
 - Usable for benchmarking
2018-03-24 03:12:53 -07:00
Nate McMaster 7e13e83348
Remove PackageArtifactCategory 2018-03-23 16:34:43 -07:00
John Luo 2dc1858f90 Merge branch 'release/2.1' into dev 2018-03-23 16:02:42 -07:00
pan-wang 731f05df38
call exit to force shutdown in case of timeout (#726) 2018-03-23 15:19:00 -07:00
John Luo 26578f5079 Reenable API check 2018-03-23 15:01:50 -07:00
John Luo ec184bc361 Build runtime specific metapackages 2018-03-23 13:40:27 -07:00
John Luo 63fd1e1a4d Re-enable api check
- Disable api check for Transport.Libuv due to breaking change
- Add empty baseline files for unreleased packages
2018-03-23 12:55:06 -07:00
David Fowler 0753f4b4f4 Merged release/2.1 2018-03-22 21:56:29 -07:00
David Fowler abdcb47b8f
Renames from API review (#2413)
* Renames from API review
- Rename Microsoft.AspNetCore.Protocols.Abstractions to Microsoft.AspNetCore.Connections.Abstractions.
- Renamed IConnectionHandler to IConnectionDispatcher (and related properties and types)
- Added ConnectionHandler and UseConnectionHandler extension method to Connections.Abstractions.
-  Use ActivatorUtilties to create the ConnectionHandler
2018-03-22 21:38:14 -07:00
Pavel Krymets ed801f0e88 Do not return 200 for exceptions 2018-03-22 16:43:11 -07:00
Justin Kotalik f1058f8575
Cleanup ReadAsync calls, make IISHttpContext private (#696) 2018-03-22 11:13:06 -07:00
Nate McMaster 12abcd2f68
Merge branch 'release/2.1' into dev 2018-03-21 22:16:12 -07:00
Nate McMaster 54e538dcb5
Remove dotnet tool install from instructions on using dotnet-dev-certs 2018-03-21 22:10:48 -07:00
Nate McMaster d61d723cba
Update package metadata to include commit hash (#713) 2018-03-21 17:42:18 -07:00
Ryan Brandenburg c8f5b2e3ae Set 2.0 baselines 2018-03-21 15:20:30 -07:00
pan-wang ffeebfc8b9
support shutdown timeout for inprocess application (#703) 2018-03-21 13:37:26 -07:00