Commit Graph

14349 Commits

Author SHA1 Message Date
Nate McMaster c343628926 Implement max connection limits
- Added new options to allow configuring the maximum number of concurrent connections and upgraded connections.
- `KestrelServerLimits.MaxConcurrentConnections` defaults unlimited.
- `KestrelServerLimits.MaxConcurrentUpgradedConnections` defaults to unlimited.
- Calls to IHttpUpgradeFeature.UpgradeAsync() will throw when the MaxConcurrentUpgradedConnections limit has been reached.
- Kestrel will close new connections without response when MaxConcurrentConnections is reached.
2017-05-26 12:27:48 -07:00
John Luo 3b488c470a Make IHostedServiceAsync 2017-05-26 10:52:08 -07:00
Doug Bunting 5b9e129abb React to breaking change latest API Check detects
- see PR aspnet/BuildTools#259 and issue aspnet/BuildTools#146
2017-05-26 09:51:56 -07:00
Nate McMaster 75ba58bac2 Re-add some code that was removed during TFM churn 2017-05-26 09:51:38 -07:00
Arthur Vickers adee238e8f Remove ignored Include call. 2017-05-26 09:42:31 -07:00
Hao Kung 273b25fb3a React to forbid changes 2017-05-25 18:37:27 -07:00
Hao Kung b1f92fb6bc Forbid + obsolete context.Authentication 2017-05-25 18:26:36 -07:00
Hao Kung 67bb0bd4ba React to Auth 2017-05-25 18:24:38 -07:00
Jass Bagga 7bd98f5cf9 Update TFM to netstandard2.0 (#53) 2017-05-25 17:12:10 -07:00
Cesar Blum Silveira 009759c7f6 Fix broken microbenchmarks (#1861). 2017-05-25 16:01:17 -07:00
Andrew Stanton-Nurse 06028e81c7 fix build by adding OutputType exe to test project (#179) 2017-05-24 18:20:46 -07:00
Javier Calvarro Nelson 7ac72dd7d8 Add task for generating ssl certificates with MSBuild 2017-05-24 15:55:43 -07:00
Stephen Halter 6c0af445e5 Fix flaky test and improve TestServer (#1859) 2017-05-24 15:45:54 -07:00
Hao Kung d97d3e7089 React to identity cookies 2017-05-24 14:01:28 -07:00
Nate McMaster 9428d1778d Upgrade corefx packages to 4.4.0 2017-05-24 11:48:05 -07:00
John Luo d25dbd572c Target NETStandard2.0 2017-05-24 11:10:13 -07:00
Nate McMaster b706a75e03 Target .NET Standard 2.0
This retargets all data protection libraries to ns2.0. This means .NET
Framework applications will need to upgrade to .NET Framework 4.6.1.
This upgrade makes available API to .NET Core that was previously only
available on .NET Framework, such as encrypting keys at rest with
certificates.

New API for .NET Core users:
- IDataProtectionBuilder.ProtectKeysWithCertificate(string thumbprint)
- CertificateXmlEncryptor
- ICertificateResolver
- DataProtectionProvider
  - .Create(string applicationName, X509Certificate2 certificate)
  - .Create(DirectoryInfo keyDirectory, X509Certificate2 certificate)
  - .Create(DirectoryInfo keyDirectory, Action<IDataProtectionBuilder>
  setupAction, X509Certificate2 certificate

Other minor changes in this commit:
- Fixed samples that were using obsolete logging API
- Remove calls to api-sets, instead using kernel32. .NET Core 2.0 no
longer requires using api-sets as Nano Server now forwards kernel32
calls
- Made minor improvements to the TypeForwardingActivator
- Remove dead code an unused api baselines
- Enable more tests on macOS/Linux that previously only ran on Windows
2017-05-24 09:47:10 -07:00
Arthur Vickers aaea92906f Add explicit decimal data types
Issue #768
2017-05-23 17:41:56 -07:00
pan-wang bce531f61a add features: flowing authentication info, hosting environment variable support; fix client disconnect and app_offline issues (#102)
resubmit
2017-05-23 17:25:45 -07:00
BrennanConroy 03bdb40f8a Add UseShutdownTimeout Extension (#1086) 2017-05-23 16:20:41 -07:00
Chris R c9a8cfce04 React to StringSegment change 2017-05-23 14:06:09 -07:00
Chris R 419ec53d07 React to StringSegment changes 2017-05-23 10:38:21 -07:00
Chris R 7ac6842d18 #1075 Suppress exceptions from failing to load HostingStartup assemblies 2017-05-23 10:36:57 -07:00
John Luo 68d1d4ce12 Remove TestProjectHelpers from Server.IntegrationTesting 2017-05-22 15:55:24 -07:00
BrennanConroy c8bf886e92 Fix tests not running as expected (#1080) 2017-05-22 15:16:35 -07:00
Chris R 2ce2d8b6c5 #758 Convert the header parsers to use StringSegment 2017-05-22 15:14:02 -07:00
John Luo d6a653145d Target NETStandard 2.0 2017-05-22 15:05:12 -07:00
John Luo e8123db21e Add SameSite attribute to SetCookie header 2017-05-22 14:42:05 -07:00
Hao Kung 6c13465dc2 React to identity changes 2017-05-22 13:52:59 -07:00
Cesar Blum Silveira 197eb43d8a Read request body concurrent to app execution. 2017-05-22 12:23:02 -07:00
Nate McMaster 390582dcf1 Target .NET Standard 2.0 (#1849) 2017-05-20 10:37:35 -07:00
BrennanConroy b6f558d60b Fix flaxy test (#1079) 2017-05-19 16:40:41 -07:00
BrennanConroy c7bac3133f Chain hosting timeout to StopAsync cancellation token (#1078) 2017-05-19 16:32:45 -07:00
John Luo 62cd07d0a6 Target NETStandard2.0 and add WindowsServices back 2017-05-19 14:17:02 -07:00
Kiran Challa e3114dc6a4 Temporarily change tfm to netstandard1.3
Ideally we want to target netstandard2.0 but this conversion is blocked on the issue: https://github.com/dotnet/sdk/issues/1219
2017-05-19 14:00:08 -07:00
Steve Sanderson ac3ab36b3d Add JavaScriptServices to Universe 2017-05-19 11:38:50 +01:00
Chris R 8580226a4b #51 Add AzureSiteExtension tag and package type 2017-05-18 15:28:56 -07:00
Pavel Krymets 34ab089e7b React to scheduler changes (#1846) 2017-05-18 14:49:48 -07:00
John Luo 6e87b0f5eb Target netstandard2.0 TFM 2017-05-18 14:38:26 -07:00
John Luo 9313a02aa8 Remove duplication of parsing helper 2017-05-18 11:49:03 -07:00
Cesar Blum Silveira f8a6433cd5 Fix flaky ResponseTests.FailedWritesResultInAbortedRequest. 2017-05-17 17:01:34 -07:00
jhkimnew 88cc1c14d0 Added a new environment variable value UsePrivateAspNetCoreFile for ANCMTestFlags and fixing test issues (#101) 2017-05-17 16:40:29 -07:00
Hao Kung ddd69e5fdf Remove references to DisplayName 2017-05-17 14:41:16 -07:00
Hao Kung f12fc69cbf Fix test reference 2017-05-17 14:03:56 -07:00
Hao Kung 8ed21d56c8 IIS => Auth 2.0 2017-05-17 13:37:30 -07:00
jhkimnew ec90853147 Disable using privateAspNetCoreFile to test release candiate build (#100) 2017-05-17 12:57:39 -07:00
John Luo 07470d41b1 Ignore empty header values #722 2017-05-17 12:45:56 -07:00
Nate McMaster 7f0319f5dd Throw InvalidOperationException from IHttpUpgradeFeature.UpgradeAsync when request is not upgradable 2017-05-17 11:38:42 -07:00
Cesar Blum Silveira 10f88aeafc Fix duplicate ID test warning. 2017-05-17 10:57:39 -07:00
Nate McMaster 643a43c3d6 Update test framework versions and fix issues with tests (#1834) 2017-05-17 09:36:40 -07:00