Commit Graph

2652 Commits

Author SHA1 Message Date
John Luo 97acb95715 Set default protocol to HTTP/1.x 2018-10-17 11:11:02 -07:00
Justin Kotalik b951ac9b64
Fix path to aspnetcoreca.dll for signed output (#1513) 2018-10-16 15:55:15 -07:00
Pavel Krymets 8f99140f30
Add client disconnect logs (#1521) 2018-10-16 15:30:19 -07:00
Nate McMaster e75dc56327
Sign Newtonsoft.Json with AssemblySigning3rdPartyCertName 2018-10-16 14:29:10 -07:00
Nate McMaster 6366deb193
Update dataprotection to 2.2.0-rtm 2018-10-16 11:33:17 -07:00
Nate McMaster b64e64d9e5
Merge branch 'namc/merge-dp-22' into release/2.2 2018-10-16 11:32:28 -07:00
Justin Kotalik 92baa4a75b
Cleanup ANCM installers/ Sign AspNetCore custom action (#1499) (#1502) 2018-10-15 17:46:36 -07:00
Pavel Krymets 24e2e5ad52
Port startup tests to IIS (#1513) 2018-10-15 11:44:51 -07:00
Nate McMaster 6a14b47ccd
Add infrastructure changes to src/DataProtection can build on its own 2018-10-15 11:17:06 -07:00
Pavel Krymets b0deed05be
Add server abort tests (#1510) 2018-10-15 10:33:14 -07:00
Nate McMaster 489a88d21e
Merge aspnet/DataProtection release/2.2 into this repo 2018-10-15 10:21:02 -07:00
Nate McMaster a673bfd741
Add build script and CI config for the DataProtection folder 2018-10-15 10:13:04 -07:00
Nate McMaster 4dfd351c84
Remove DataProtection submodule and update path to DP source code to local folder 2018-10-15 09:46:20 -07:00
Nate McMaster c355f10074
Merge source code from aspnet/DataProtection 2018-10-15 09:40:44 -07:00
Pavel Krymets 0b5973e501
Enable auth tests on IIS (#1511)
* Enable auth tests on IIS

* FB
2018-10-13 10:54:20 -07:00
Nate McMaster c37a332a6a
Merge branch 'release/2.1' into release/2.2 2018-10-12 16:56:47 -07:00
Justin Kotalik dbc1d38a58
Move ANCM installers to Universe (#1456) 2018-10-12 14:32:12 -07:00
Nate McMaster fb3f5d95c2
Backport infrastructure changes and source reorganization
* Add build definition for Azure DevOps
* Put code for metapackages in a subfolder
* Update targets to prepare for submodules merging into this repo
* Add source code for windows installer
* Add source code for Debian installers
2018-10-12 13:59:43 -07:00
Stephen Halter 1f2e704dd3
Implement MinResponseDataRate for HTTP/2 (#3003)
#2807
2018-10-12 13:15:46 -07:00
Nate McMaster f4026cc100
Reorganize source code from aspnet/DataProtection into a subfolder
Prior to reorg, this source existed at 3f5f419df8
2018-10-12 13:14:22 -07:00
Pavel Krymets 642e8e9d7c
Add Basic auth tests and fix Windows auth tests (#1502) 2018-10-12 12:03:11 -07:00
Nate McMaster 4f14cda425
Reorganize source code from aspnet/DataProtection into a subfolder
Prior to reorg, this source existed at b62bb5778b
2018-10-12 10:07:51 -07:00
Chris Ross (ASP.NET) 081cef0934 Track aborted streams for a given grace period #2832 2018-10-11 12:55:26 -07:00
Pavel Krymets 1132cad70b
public const string AuthenticationScheme (#1496) 2018-10-11 10:54:00 -07:00
Justin Kotalik 0e04527fb4
General cleanup for client disconnect handling. (#1446) 2018-10-11 08:44:03 -07:00
Günther Foidl 773aa6e6ff Http{Request|Response}Stream.ValidateState made inlineable 2018-10-10 17:45:05 -07:00
BrennanConroy 3f5f419df8
Add Redis 2.0 package (#325) 2018-10-10 16:40:52 -07:00
Pavel Krymets bfa583a9aa
Guard OnAsyncCompletion from completing request before OnExecuteRequestHandler exits (#1489) 2018-10-10 14:34:55 -07:00
Pavel Krymets ab124fc344
Fix applicationInitialization tests and disconnect handler (#1484) 2018-10-10 12:41:11 -07:00
Pavel Krymets 7a09638afe
Modernize startup error pages (#1476) 2018-10-09 16:12:01 -07:00
Pavel Krymets f2fbd803b9
Flow request trace context to CreateApplication (#1480) 2018-10-09 16:11:52 -07:00
Justin Kotalik 23db53eae6
Add more FREB events/ tests for FREB events (#1461) 2018-10-09 10:25:12 -07:00
Stephen Halter 8bca6b3877
Add HTTP/2 keep-alive and request header timeouts (#2992) 2018-10-08 17:06:15 -07:00
Pavel Krymets 1be7cd1f74
Disconnect the disconnect handler when request processing ends (#1471) 2018-10-08 16:05:28 -07:00
John Luo 5b90028fe3 Expose status code of BadHttpRequestException 2018-10-05 16:08:33 -07:00
Chris Ross (ASP.NET) daf6e1ecd7 Http/2 response trailers #622 2018-10-05 12:50:46 -07:00
George Drak e9eea50966 Implement #2230 - Consume BindingAddress instead of ServerAddress (#2975)
* #2230 Mark ServerAddress as obsolete

* #2230 suppress CS0618 errors for obsoleted ServerAddress class

* #2230 Use BindingAddress instead of ServerAddress
2018-10-05 10:34:00 -07:00
Stephen Halter f91ae20a3c
Improve RequestAborted token handling (#2977)
- Improve test reliability of tests verifying the RequestAborted token gets tripped
- Once the response body is completed, don't fire the token for that request even if it is accessed later on.
2018-10-04 16:48:50 -07:00
Andrei Amialchenia df2ad98743 Use logical 'or' instead of bitwise in IsConnectionReset method. (#2983) 2018-10-04 15:37:24 -07:00
Chris Ross (ASP.NET) 35d35f22a3 Disallow any frames after a reset is received #2154 2018-10-04 09:40:21 -07:00
Stephen Halter 5bd2a41517
Make transport logs for connection close more detailed and consistent (#2978) 2018-10-03 12:41:00 -07:00
Nate McMaster f2691ee4b6
Add a copy of scripts from dotnet-deb-tool 2.0.0 to this repo (#1442)
We currently build .deb files using dotnet-deb-tool, which comes from a package feed. We're not completely sure where the source code is for this tool, so this moves the scripts from the dotnet-deb-tool 2.0.0 package into this repo for safe keeping.
2018-10-02 14:32:12 -07:00
Nate McMaster 4c49d5ce80
Resolve flaky tests (#497)
1. Prevent an ObjectDisposedException in dotnet-watch on slower machines
2. Fix flakiness caused by PID reuse
3. Fix flakiness in tests that await the restart of dotnet-watch. The `.TimeoutAfter` method doesn't cancel the long-running task. This left 2 readers running on dotnet-watch output which caused indeterminate test outcome.
2018-10-02 09:17:04 -07:00
Nate McMaster 7d3628b8ac
Merge branch 'release/2.1' into release/2.2 2018-10-01 15:58:37 -07:00
Justin Kotalik 3ddc86a428
Fix mof file (#1457) 2018-10-01 08:00:44 -07:00
Nate McMaster 72cd5eedcf
Prepare the 2.1.6 patch (#1434) 2018-09-28 17:57:33 -07:00
Nate McMaster 0eb57b2a29
automated: bulk infrastructure updates. Update bootstrapper scripts and remove unnecessary signing properties 2018-09-28 17:19:45 -07:00
Simon Cropp d4ab8b27a9 typos, inline outs, redundant usings (#2965) 2018-09-28 11:14:59 -07:00
Nate McMaster 89fccf3ac5
Enable MicroBuild code signing (#1456)
Fixup the paths to files to be signed.
2018-09-28 10:37:18 -07:00
John Luo 7cf1cf2a54 Update API check baselines to 2.1.0 2018-09-28 10:30:50 -07:00
Justin Kotalik 45a52ebff5
Move Log call before starting application (#1453) 2018-09-28 08:53:32 -07:00
Stephen Halter e9c2acf4dc
Add HTTP/2 response draining timeout (#2956)
* Move drain timeout to Http1Connection
* Add TimeoutControl class
2018-09-27 17:59:12 -07:00
Justin Kotalik fc39ea3bec
Make hosting bundle get prodcon runtime versions (#1435) 2018-09-27 16:44:40 -07:00
Nate McMaster 4baa07ccae
Update code signing properties and configuration 2018-09-27 12:55:40 -07:00
John Luo f56b682b36 Impose integer decode limit in HPACK 2018-09-26 17:18:24 -07:00
Nate McMaster 0157e38a23
Fix the path for SignedPackageFile and include the VSIX .dll in signing 2018-09-26 15:06:06 -07:00
Pavel Krymets bac0f44fa7 Revert "Disconnect the disconnect handler when request processing ends (#1413)"
This reverts commit f808bdc331.
2018-09-26 14:17:40 -07:00
Justin Kotalik 1eb5da31e5
Improve error messages and add static html pages for failure to start site. (#1421) 2018-09-25 15:40:15 -07:00
Chris Ross (ASP.NET) 01b35bc391 Make HTTP/2 connection and stream windows configurable #2814 2018-09-24 15:31:50 -07:00
John Luo ceaa3c86fc Add configurability for max header field size in HPACK 2018-09-24 10:53:15 -07:00
Pavel Krymets f808bdc331
Disconnect the disconnect handler when request processing ends (#1413) 2018-09-21 09:13:39 -07:00
Pavel Krymets d28468ca8f
Override IIS headers in inproc (#1409) 2018-09-20 09:21:34 -07:00
Pavel Krymets 375d037946
Add applicationInitialization tests (#1402) 2018-09-19 16:32:24 -07:00
Pavel Krymets b6c311c14d
Add client disconnect and connection abort support (#1388) 2018-09-18 16:36:52 -07:00
Justin Kotalik ece5ad36e2
Implement ITlsConnectionFeature (#1390) 2018-09-18 14:22:56 -07:00
Stephen Halter f3b6430aab
Initialize Heartbeat in KestrelServer.StartAsync (#2939)
Fixes #2850 again
2018-09-17 16:43:30 -07:00
tiago-soczek a7e412ec80 Fix category logger for HttpsConnectionAdapter and LoggingConnectionAdapter. #2929 (#2935) 2018-09-17 16:01:14 -07:00
Chris Ross (ASP.NET) b8423b8530 Change how HTTP/2 frames are parsed and generated #2858 2018-09-17 14:48:43 -07:00
David Fowler 2999aa54cd
Remove calls to MemoryMarshal.GetReference (#2931)
- Spans can be pinned natively in C# 7.3
2018-09-17 14:47:04 -07:00
John Luo 69ff195f66 Enable hpack/4.2 - Maximum Table Size test
- Ensure dynamic tables size updates occur at the beginning of the header block
2018-09-17 12:46:51 -07:00
John Luo 025aca52df Port long Huffman encoding bug fix
https://github.com/dotnet/corefx/pull/32043
2018-09-17 12:41:36 -07:00
Pavel Krymets 5e896ca506
Implement IHttpBufferingFeature (#1391) 2018-09-17 12:04:12 -07:00
Justin Kotalik 2cd6ad6d50
Add windows auth tests for inproc (#1385) 2018-09-17 11:57:46 -07:00
Chris Ross (ASP.NET) 55e5e56422 Dispatch Http/2 write callbacks #2878 2018-09-13 11:53:30 -07:00
Justin Kotalik 3649f5bb81
Add OutOfProc logging tests/ merge all inproc test sites into a single site (#1384) 2018-09-12 23:20:52 -07:00
Chris Ross (ASP.NET) f38f60f8ce Map ListenOptions.Protocols from IConfiguration #2903 2018-09-10 16:27:51 -07:00
John Luo de5ccb5c78 PR feedback for https://github.com/aspnet/KestrelHttpServer/pull/2838 2018-09-10 13:58:46 -07:00
Glenn Condron 4bcfbe4d40
[REPL] Help improvements for repl (#478)
* Beginning of help additions. Fixed a nullref.
* Standardized help with options displayed as appropriate.
2018-09-07 15:21:42 -07:00
Nate McMaster aa93edcee2
Remove Microsoft.DotNet.GlobalTools.Sdk
These targets are now part of Microsoft.NET.Sdk
2018-09-07 10:01:52 -07:00
Nate McMaster e3ba165baa
Update build.ps1 2018-09-06 23:04:43 -07:00
Pavel Krymets 2597a2e009
Merge QueryStatus and CreateHandler calls to make them atomic (#1359) 2018-09-06 15:42:18 -07:00
Justin Kotalik 2cc108b2e1
Write wide strings to stdout; cleanup logging providers; test utf8 (#1332) 2018-09-06 11:57:00 -07:00
Simon Cropp d3d7c55198 fix some spelling (#2888) 2018-09-06 11:48:25 -07:00
Justin Kotalik 1fca011674
Fix output location for lib files (#1373) 2018-09-06 10:32:49 -07:00
Pavel Krymets b1f0f173aa
Use ConnectionResetException with 'The client disconnected' message (#1364) 2018-09-06 10:10:07 -07:00
Chris Ross (ASP.NET) b8e56691cb Implement MaxRequestLineSize for HTTP/2 #2813 2018-09-06 10:01:28 -07:00
Chris Ross (ASP.NET) 384a518bda Implement MaxRequestHeadersTotalSize for HTTP/2 #2812 2018-09-06 09:07:16 -07:00
David Fowler edc1935475
Flow the cancellation tokens to ReadAsync and WriteAsync (#2865) 2018-09-06 09:04:39 -07:00
Mike Harder 71b7bb50b2
Ensure external processes are killed when test process exits (#1371)
- Prevents locked files when stop debugging unit test
- Addresses #1279
2018-09-05 17:21:59 -07:00
Pavel Krymets 88d8571474
Add Trace level for request events, allow logging to eventlog (#1337) 2018-09-05 17:15:04 -07:00
Pavel Krymets 18a718d1f0
Catch all exception in native callbacks (#1369) 2018-09-05 16:48:10 -07:00
Pavel Krymets 613fbcc349
Enable code analysis on shim project (#1361) 2018-09-05 16:47:51 -07:00
Nate McMaster e23e8fff95
Install MicroBuild code signing plugin and set SignType = real (#1376) 2018-09-05 12:50:34 -07:00
Justin Kotalik 1b87f1e913 Merge branch 'merge/release/2.1-to-release/2.2' into release/2.2 2018-09-04 14:10:35 -07:00
Chris Ross (ASP.NET) 991cfa8bd8 Remove limits on SETTINGS_HEADER_TABLE_SIZE #2874 2018-09-04 12:01:13 -07:00
Pavel Krymets 0459b6d0d4
Fix dotnet.exe abort exception and startup/shutdown timeouts (#1352) 2018-08-31 09:05:46 -07:00
Justin Kotalik db01ae3717 Remove FreeConsole calls. (#1358) 2018-08-31 08:16:07 -07:00
Nate McMaster 7520ffa0ef
Fix up service scoping in the EF Core xml repository and update package version to 2.2 2018-08-30 16:22:43 -07:00
John Luo 153020ef8a Allow UTF8 encoded header values 2018-08-30 16:21:34 -07:00
Nate McMaster a6a21351b6
Merge branch 'release/2.1' into release/2.2 2018-08-30 15:28:26 -07:00
Justin Kotalik 729a98adfc
Call AllocConsole (#1351) 2018-08-30 12:20:53 -07:00
Justin Kotalik e7f3c7c62e
Remove bad rc files (#1355) 2018-08-30 12:18:30 -07:00
Justin Kotalik 922298bc90
Add rc file as an include for ANCMV1 (#1284) (#1344) 2018-08-30 12:00:13 -07:00
dan.s.ward 8f7d995508 Added Entity Framework Core backed IXmlRepository with tests and sample (#303) 2018-08-29 14:04:37 -07:00
Nate McMaster cf3d2f1299
Minor tweaks to meta-package descriptions (#1343)
Per feedback on #1320 which came in post-merge.
2018-08-29 12:03:24 -07:00
Gert Driesen 1a43e67542 Remove workaround for dotnet/corefx#24562 (#2863)
This issue caused a bind to a recently used endpoint to fail on macOS and Linux.

Addresses #2820
2018-08-28 15:59:17 -07:00
Stephen Halter 5ea537fbc4
Don't advance examined in Http1MessageBody.PumpAsync for canceled reads (#2847) 2018-08-28 11:28:17 -07:00
Stephen Halter 89f4850883
Avoid throwing the same exception instances in parallel (#2859) 2018-08-28 10:56:46 -07:00
Nate McMaster 5f89835420
Merge branch 'release/2.1' into release/2.2 2018-08-28 10:33:12 -07:00
Justin Kotalik 037482829d
Add commit hash to V1 description (#1281) 2018-08-28 09:36:21 -07:00
Justin Kotalik 5f20f2a2dd
Update schema for ANCMv1 (#1276) 2018-08-28 09:35:49 -07:00
Justin Kotalik cc26d973ba
Remove early dereference of ASPNETCORE_PORT env var (#1274) 2018-08-28 09:34:54 -07:00
Justin Kotalik 338af6f07d
Reduce probability of startup port collisions (#1273) 2018-08-28 09:34:10 -07:00
David Fowler 6dc55a0462
Don't preserve the ExecutionContext when dispatching callbacks (#2861)
* Don't preserve the ExecutionContext when dispatching callbacks
- The layers up stack already preserve and restore the ExecutionContext, there's no need to capture and run for the scheduler callback and cancellation token callback
2018-08-28 09:32:33 -07:00
Nate McMaster 42fa04aa87
Add the latest version of Microsoft.AspNetCore.Razor.Design to the offline package cache (#1316) 2018-08-28 09:19:56 -07:00
Nate McMaster 6b1d22c581
Add package descriptions for Microsoft.AspNetCore.{App, All} (#1320) 2018-08-28 09:19:37 -07:00
Nate McMaster b206d59612
Prepare 2.1.5 patch 2018-08-28 09:14:43 -07:00
Justin Kotalik 2605b943f3
Use only one log file for stdout (#1334) 2018-08-27 16:50:16 -07:00
Stephen Halter f70ba53253
Fix race when SystemClock is accessed before first heartbeat (#2851) 2018-08-27 10:59:29 -07:00
Pavel Krymets 9b68c5ce89
Add tests for processpath and arguments (#1331) 2018-08-24 22:20:28 -07:00
Pavel Krymets 6ddbfb64b9
Improve configuration file handling logic (#1317) 2018-08-24 20:20:26 -07:00
Justin Kotalik 2cbf5bd84e
Query event logs when verifying event log messages. (#1323) 2018-08-24 16:02:04 -07:00
John Luo 64127e6c76 Implement MaxFrameSize and HeaderTableSize for HTTP/2 2018-08-24 11:07:41 -07:00
David Fowler d318d7b94d
Make tests less flaky (#2848)
- Re-order logs with completing the task
2018-08-23 22:29:56 -07:00
Stephen Halter fc3c2eef5e
Handle SocketError.ProtocolType as a connection reset on macOS (#2845)
* Handle SocketError.ProtocolType as a connection reset on macOS
* Make IsConnectionResetError and IsConnectionAbortError stricter
2018-08-23 19:16:44 -07:00
Stephen Halter e5a1101239
Improve exception handling in SocketConnection (#2844)
- Avoid race where a connection reset observed by both DoSend() and DoReceive()
  resulted in a ConnectionAbortedException being thrown from the input Pipe
  instead of a ConnectionResetException.
2018-08-23 16:59:02 -07:00
Justin Kotalik 1d4d882c0d Spelling mistake in debug log 2018-08-23 13:45:10 -07:00
David Fowler 68a0863524
General connection management (#2834)
This change makes the handling of graceful shutdown work for more than just http scenarios. This should allow us to move TLS further out and should also allow us to start moving things to connection middleware instead of connection adapters.
Summary of the things changed/added:
- Added IConnectionLifetimeNotificationFeature that represents an attempt to gracefully close the connection that isn't being aborted. This feels pretty awful but we may have to do it.
- Moved connection management to the ConnectionDispatcher and out of the HttpConnectionMiddleware
- Removed Http from the names of the ConnectionManager and Heartbeat
2018-08-22 20:35:28 -07:00
Justin Kotalik 3b3f128306
Enable app verifier on VSTS; Fix debug log handle use (#1291) 2018-08-22 15:39:59 -07:00
Pavel Krymets eebbb6a602
Support portable.exe apps and better error reporting (#1287) 2018-08-22 12:04:04 -07:00
Pavel Krymets 36e5aceb3c
Serve 503 if server process is shutting down (#1293) 2018-08-22 09:53:25 -07:00
Pavel Krymets e26231b613
Cleanup application manager (#1250) 2018-08-22 08:23:40 -07:00
David Fowler 0b471f2b2f Sockets: do 0 byte reads to avoid allocating memory for idle connections
- Do not do 0 byte reads on OSX due to potential sockets bug
2018-08-21 18:07:15 -07:00
Justin Kotalik e23d9cb4ac
Fix a few leaked handles (#1260) 2018-08-21 15:45:42 -07:00
Justin Kotalik 9ccd3addc3
Synchronizes copyrights between V1 and V2. (#1283) 2018-08-21 14:13:33 -07:00
Justin Kotalik 135da118d1
Add rc file as an include for ANCMV1 (#1284) 2018-08-21 14:12:15 -07:00
Pavel Krymets 26964b2687
Macrosify out-of-proc (#1268) 2018-08-21 14:11:34 -07:00
Justin Kotalik 2778570f0b
Redirect native logs into stdout and pipe (#1154) 2018-08-21 14:03:26 -07:00
Mike Harder 2d61889e5e
Support empty value for ASPNETCORE_PORT (#1280)
- Addresses #1264
2018-08-21 13:44:34 -07:00
Nate McMaster 28d4064cba
Add a build definition for compiling Universe in VSTS 2018-08-20 16:02:43 -07:00
Nate McMaster b67a141263
Add code for building the Windows Hosting Bundle and ASP.NET Core runtime installers into this repo
This code previously was in private repos because it had references to internal locations and drop shares. This code has been modified to remove these internal-only pieces.
2018-08-20 15:56:22 -07:00
Mike Harder 6da64c6d55
Fix process start error message (#1267)
- Addresses #1261
2018-08-20 14:13:55 -07:00
Mike Harder de32a08ae7
Fix typo in process start error message (#1266) 2018-08-20 14:11:51 -07:00
Mike Harder cc4bbd1cef
Fix typos in portsetup error message (#1265) 2018-08-20 14:11:18 -07:00
Nate McMaster 86b7d5162a
Merge branch 'release/2.1' into release/2.2 2018-08-20 08:28:58 -07:00
John Luo 6f7a841374 Fire OnStreamCompleted after all pipes are closed 2018-08-17 17:45:47 -07:00
Justin Kotalik a1e8b3a9af
Free environment variable table in inprocess application (#1254) 2018-08-17 16:29:30 -07:00
Chris Ross (ASP.NET) aa9dde2457 Extract bitshift helper code, Frame cleanup #2773 2018-08-17 15:48:16 -07:00
Nate McMaster 84d4627b8b Upgrade build tools to use the 2.1.400 SDK (#1249) 2018-08-17 15:23:18 -07:00
Justin Kotalik 5fc59b2331
Free ALLOC_CACHE_HANDLER on dll unload (#1253) 2018-08-17 14:26:53 -07:00