Commit Graph

2652 Commits

Author SHA1 Message Date
Nate McMaster 11ca4e46f6
Remove unused .Sources packages 2018-07-11 21:36:50 -07:00
Nate McMaster e5c501099a
Remove unused .Source packages 2018-07-11 21:33:51 -07:00
Justin Kotalik 385f647215
Allow debug log file to be specified in handler settings; move tests from IISExpress to shared. (#1033) 2018-07-11 18:29:36 -07:00
Pavel Krymets 9635d4fd8d
Cleanup compilation warnings and re-enable asserts (#1035) 2018-07-11 11:47:22 -07:00
Stephen Halter a826f478ad Implement HTTP/2 output flow control (#2690) 2018-07-10 14:11:59 -07:00
Nate McMaster 1d9db7c25f
Merge 2.1.2 into release/2.1 2018-07-10 10:34:35 -07:00
Justin Kotalik 11b83dc2b3
Rename reg keys from IIS ANCM V1 to V2 (#1017) 2018-07-10 10:32:01 -07:00
Pavel Krymets 86fed4de5f
Fix shutdown race (#1031) 2018-07-10 10:18:32 -07:00
Pavel Krymets f7936ac062
Finish up appoffline refactoring (#1018) 2018-07-09 16:17:33 -07:00
Pavel Krymets 99ec23097e
Merge pull request #1015 from aspnet/pakrym/flush-sync
Sync native calls
2018-07-06 15:09:46 -07:00
Pavel Krymets 5f02de1e2c Test 2018-07-06 14:43:33 -07:00
Nate McMaster c1fb4479a3
Update LZMA to restore netcoreapp2.2 packages 2018-07-06 13:45:30 -07:00
Nate McMaster 9276602279
Merge branch 'release/2.1' into release/2.2 2018-07-06 13:43:43 -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 2af13658fc
Unprotect key material with the local cache of certificates before checking the cert store
In some cases, private keys for certificates is not completely available. When attempting to decrypt key material,
this can cause 'CryptographicException: Keyset does not exist'. This changes the order in which key material
decryption looks up private keys to first key the certificate options provided explicitly to the API, and then
falling back to the cert store for decryption keys.
2018-07-05 11:31:46 -07:00
Justin Kotalik 73867a086c
IIS-Inproc new project cap (#1238) 2018-07-05 10:10:39 -07:00
Pavel Krymets b280597c68 fb 2018-07-05 09:01:47 -07:00
Pavel Krymets 724cc3ce88
Only run fallback logic for dotnet and dotnet.exe (#1004) 2018-07-03 16:49:24 -07:00
Pavel Krymets 3bdb33ccd4 Sync native calls 2018-07-03 16:46:39 -07:00
Justin Kotalik 3efc1eede4
Set correct event providers for ANCM V2 (#1009) 2018-07-02 18:21:22 -07:00
Justin Kotalik 9b7ee92028
Check thread invalid handle and remove extra dup2 call. (#1008) 2018-07-02 17:18:05 -07:00
Justin Kotalik dfd75e939d
Add full IIS tests (#979) 2018-07-02 12:15:15 -07:00
Pavel Krymets 65d3787fc4
Pass parameters to createapplication method (#998) 2018-06-29 12:42:00 -07:00
Pavel Krymets dfed3d7563
Add and use GetEnvironmentVariableValue (#997) 2018-06-29 11:17:22 -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
Pavel Krymets f5f0988baf
Make handlerSettings optional (#989) 2018-06-29 08:44:03 -07:00
Pavel Krymets b84a233d39
Add ability to print debug logs to a file (#954) 2018-06-28 11:52:53 -07:00
Stephen Halter 2ab22ac55a Merge branch 'release/2.1' into dev 2018-06-28 11:27:11 -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
Justin Kotalik 4a09d4795e
Use HandleWrapper and initialize variables for FileOutputManager (#986) 2018-06-28 09:09:34 -07:00
Pavel Krymets 27780c28ba
Do not override error responses (#985) 2018-06-27 22:53:30 -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
Justin Kotalik 32e0d136f2
Fix null handle issue on full IIS (#973) 2018-06-27 11:54:32 -07:00
pan-wang af1bf0e1c3
caching handlers to avoid heap fregamentation (#967)
caching handlers to avoid heap fregamentation
2018-06-27 11:46:24 -07:00
Justin Kotalik fac42c78a1
Re-enable flaky logging tests, add logs to output redirection providers, fix potential race condition in closing pipe output. (#971) 2018-06-26 11:28:56 -07:00
John Luo 423d5432be Add test for ensuring HPACK lowercase header names
- ensure lowercase mask only applied to uppercase letters
2018-06-26 10:44:21 -07:00
Justin Kotalik 0d96354eef
Return static 500.30 file on startup fails for in-process (#934) 2018-06-25 17:12:30 -07:00
Pavel Krymets 4a0691a36c
Remove where.exe timeout (#970) 2018-06-25 15:14:59 -07:00
Pavel Krymets bc345bc8e7
Reduce usage of static inprocess application (#962) 2018-06-25 08:46:16 -07:00
Pavel Krymets d3d257b90e
Add tracing to shimconfig (#964) 2018-06-25 08:44:02 -07:00
Pavel Krymets aeebcdefc1
Switch to tracing macros in application info (#965) 2018-06-25 08:38:46 -07:00
Justin Kotalik 32121abde3
Fixes exit(0) with hostable webcore (#966) 2018-06-22 15:29:28 -07:00
Pavel Krymets b12c9b33f7
Cleanup where.exe invocation (#958) 2018-06-22 07:36:46 -07:00
Justin Kotalik 306ab78b88
Fix App_offline and start adding tests (#953) 2018-06-21 16:35:11 -07:00
Pavel Krymets cd81cfc243
Remove extra arguments from CreateApplication (#952) 2018-06-21 15:29:03 -07:00
Justin Kotalik e5505ceefc
Fixing build issues (#957) 2018-06-21 12:32:13 -07:00
Pavel Krymets 93de3f83ce
Reenable precompiled headers in AspNetCore project (#937) 2018-06-21 11:32:56 -07:00
Chris Ross (ASP.NET) 61e16e2b31 Automation for h2spec functional tests #2640 2018-06-21 11:17:16 -07:00
Pavel Krymets ed1fa44a3d
Add diagnostics to hostfxrutil (#951) 2018-06-20 16:22:19 -07:00
Chris Ross (ASP.NET) 324565772c Prevent app code from blocking the connection loop #2657 2018-06-20 11:06:49 -07:00
Pavel Krymets 7977793d4f
Catch all exceptions on ANCM/IIS border (#864) 2018-06-20 09:27:42 -07:00
Justin Kotalik 1e823d88e2
Ignore case on handlerVersion (#941) 2018-06-20 09:11:19 -07:00
Pavel Krymets 0a97bf9ae8
Use lock wrapper in shim (#936) 2018-06-19 21:40:29 -07:00
Pavel Krymets b24a838301
Cleanup debug logging (#932) 2018-06-19 12:13:52 -07:00
Pavel Krymets 60711bfca1
Use std::filesystem in hostfxr utilities (#926) 2018-06-19 11:29:42 -07:00
Chris Ross (ASP.NET) c498f03cb4 Expose Tls details as a feature. #2661
Limit Http/2 to TLS 1.2 #2251
Bootstrap functional tests #2238
2018-06-18 16:25:18 -07:00
Stephen Halter 14f020cf11
Improve tracking of connection lifetime (#2646) 2018-06-15 11:10:38 -07:00
Justin Kotalik b9b62932fa
Deleting commented out file 2018-06-14 16:27:00 -07:00
Justin Kotalik 7a93d69354
Adds shared request handler lib project (#916) 2018-06-14 15:51:24 -07:00
Ryan Brandenburg b59f5dd8d4 Set 2.1 baselines 2018-06-14 11:36:37 -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 a927c73805 Set 2.1 baselines 2018-06-14 10:05:58 -07:00
Ryan Brandenburg b7c722bb68 Set 2.1 baselines 2018-06-14 09:37:25 -07:00
Peter Hsu 9a7ad90a8f Revert stdout logging behavior to call SetStdHandle (#907) 2018-06-14 09:17:15 -07:00
pan-wang 2db54362a5
Panwang/shim (#911)
remove shim config from module context and remove application_info_key as we can use string directly
2018-06-13 21:52:52 -07:00
Ryan Brandenburg 5bed1972fe Set 2.1 baselines 2018-06-13 15:47:53 -07:00
Ryan Brandenburg 3064b60b34 Set 2.1 baselines 2018-06-13 15:47:41 -07:00
Justin Kotalik 1687eabcde Revert "Revert "Load ANCM out of process via global versioning (#895)""
This reverts commit ec7f23308e.
2018-06-13 12:00:00 -07:00
John Luo 13663e1e15 Convert to using definitions from HeaderNames 2018-06-13 11:24:24 -07:00
Justin Kotalik ec7f23308e Revert "Load ANCM out of process via global versioning (#895)"
This reverts commit 9d97ff38f8.
2018-06-12 15:26:25 -07:00
Nate McMaster ff3f0e905d
Merge branch 'release/2.1' into release/2.1.2 2018-06-12 14:16:29 -07:00
Justin Kotalik 9d97ff38f8
Load ANCM out of process via global versioning (#895) 2018-06-12 14:04:21 -07:00
Justin Kotalik f00d7b34c5
Revert out of process no new throw functionality (#909) 2018-06-12 08:51:56 -07:00
Justin Kotalik cd71cc050e
Spleelin (#910) 2018-06-12 08:27:11 -07:00
Chris Ross (ASP.NET) a217206f1f Enforce max frame size #2651 2018-06-11 14:20:43 -07:00
Chris Ross (ASP.NET) 810a302e66 Disable AllowRenegotiation for HTTP/2 2018-06-11 13:51:23 -07:00
Nate McMaster b1b92385c0
Add unit tests for the shared framework
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-08 10:33:31 -07:00
Chris Ross (ASP.NET) 00827e38bb Harden TFM checks #2624 2018-06-07 14:56:23 -07:00
Nate McMaster 5ebf74fa32
Add certificate names for code signing (#889) 2018-06-06 08:55:18 -07:00
Nate McMaster 124b6ba9a1
Add certificate names for code signing 2018-06-05 22:31:24 -07:00
Justin Kotalik 1822992354
Fix null ref on ExeLocation not being set (#884) 2018-06-04 14:59:50 -07:00
Justin Kotalik e1ae70166b
Improve logging architecture; add tests for logging and startup exceptions (#858) 2018-06-01 16:42:58 -07:00
Stephen Halter 0aff4a0440
Handle client and server aborts differently from eachhother (#2612)
* Trace when app aborts connection
* Improve exception messages
* Always abort connection with ConnectionAbortedException
* Add ConnectionContext.Abort(Exception)
2018-06-01 14:42:30 -07:00
Justin Kotalik f09edb3b5d
Target c++17 (#881) 2018-06-01 09:11:18 -07:00
Nate McMaster e74907d6bf
Resolves #444 - remove workaround for CTRL+C deadlocks 2018-05-31 20:16:06 -07:00
Stephen Halter aa9b9ca724 Merge branch 'release/2.1' into dev 2018-05-31 16:29:14 -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
Chris Ross (ASP.NET) 7e43d35049 Make ListenOptions.Protocols public again for HTTP/2 work 2018-05-30 12:25:38 -07:00
Stephen Halter f80091a328 Merge branch 'release/2.1' into dev 2018-05-29 16:37:16 -07:00
Stephen Halter 5ec7bacdfe
Lower severity of AuthenticationException logs from SslStream handshake (#2614) 2018-05-29 16:27:16 -07:00
Pavel Krymets 2a467bfd6d Cleanup headers and enable MultiProcessorCompilation (#845) 2018-05-29 09:06:21 -07:00
Pavel Krymets 1f34c631d6
Fix P2P build order dependencies (#871) 2018-05-25 14:06:52 -07:00
Justin Kotalik d041f89c9d
Remove E_OUTOFMEMORY check for new. (#863) 2018-05-25 09:30:06 -07:00
Pavel Krymets 4932fca0d9 Fix the build 2018-05-24 11:14:04 -07:00
Nate McMaster 83134227ab
Add support for DOTNET_WATCH_ITERATION (#443)
This environment variable can be used to determine how many types the inner command has been re-launched

Resolves #387
2018-05-24 08:24:56 -07:00
Pavel Krymets 1e143c71c6
Add Hostable Web Core based inprocess test server (#853) 2018-05-24 08:11:40 -07:00
Stephen Halter a9d6cf13eb
Consistently handle connection resets (#2547) 2018-05-22 16:38:21 -07:00
Justin Kotalik ff1ea3cf85
Split ANCM request handlers into two! (#839) 2018-05-18 16:38:19 -07:00
Pavel Krymets 8932383d67
Always pack Microsoft.AspNetCore.Server.IIS (#852) 2018-05-18 10:07:40 -07:00
Justin Kotalik f72d366603
Split config and hostfxr parsing between shim and request handler. (#814) 2018-05-16 16:45:18 -07:00
Pavel Krymets 27799b5acb
Enable pubternability analyzer (#2560) 2018-05-16 13:42:56 -07:00
Pavel Krymets 34c797a46b
Move in-process server implementation to IIS.Server (#837) 2018-05-15 15:24:17 -07:00
Nate McMaster 6272b3625e
Dispatch cancellation on CTRL+C to avoid deadlocks in killing the process tree 2018-05-15 14:50:26 -07:00
Stephen Halter f8f6f39f55
Wait off the ConnectionClosed token to stop tracking ConnectionCallback (#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.
2018-05-15 12:38:35 -07:00
Stephen Halter c683316253
Generate repetitive TransportConnection FeatureCollection code (#2548) 2018-05-14 17:20:48 -07:00
John Luo 04f2101696 Reenable api check 2018-05-14 13:36:39 -07:00
Stephen Halter 514917b9a8
Wait for input writer to complete before calling OnConnectionClosed (#2566) 2018-05-14 11:51:49 -07:00
DHumphreys 146427fa5a Updates per PR feedback 2018-05-11 17:44:47 -07:00
DHumphreys 4d92d76b64 Initial commit providing the AdapterFactory directly to the ObjectAdapter to all for customization of the Adapter selection and the ability to override the built in adapters to leverage their ability as much as possible. 2018-05-11 17:44:47 -07:00
Pavel Krymets 22a865b832
Extract a layer of IIS Async IO handling (#818) 2018-05-11 13:02:12 -07:00
Stephen Halter b040e33b1b Merge branch 'release/2.1' into dev 2018-05-10 23:47:51 -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
Stephen Halter f04118fca1 Merge branch 'halter73/merge-2.1-dev' into dev 2018-05-09 17:27:47 -07:00
Pranav K 80fa1d699d Upgrade to netcoreapp2.2
This reverts commit fe9da3c57b.
2018-05-09 16:43:15 -07:00
Pranav K 78236286b4
Upgrade tools to netcoreapp2.2 2018-05-09 14:44:43 -07:00
Pranav K ddd5c62054
Let metapackages target netcoreapp2.2 2018-05-09 12:38:01 -07:00
Nate McMaster 4279f92575 fixup! Upgrade metapackages, shared framework, and installers to netcoreapp2.2 2018-05-09 11:51:06 -07:00
Nate McMaster 6beb419a02 Upgrade metapackages, shared framework, and installers to netcoreapp2.2 2018-05-09 11:51:06 -07:00
Ryan Brandenburg fe9da3c57b Revert "Don't touch product repos"
This reverts commit 8e9f05b902.
2018-05-08 16:52:48 -07:00
Ryan Brandenburg 8e9f05b902 Don't touch product repos 2018-05-08 15:38:20 -07:00
Ryan Brandenburg 350310aa96 Handle netcoreapp cases 2018-05-08 15:38:20 -07:00
Stephen Halter c8d374af64 Merge branch 'release/2.1' into dev
# Conflicts:
#	build/dependencies.props
#	korebuild-lock.txt
#	src/Kestrel.Transport.Libuv/Internal/LibuvConnectionContext.cs
2018-05-07 15:47:20 -07:00
Nate McMaster 05d68efbae
Merge branch 'release/2.1.0-rc1' into release/2.1 2018-05-07 14:35:41 -07:00
Justin Kotalik dc9db57389
Fix out of process websocket check (#819) 2018-05-07 13:49:27 -07:00
Nate McMaster 341ba98d27
[dotnet-watch] Don't show false error messages (#434) 2018-05-07 10:52:47 -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
Stephen Halter 8b1fbad10e
Don't complete KestrelServer.StopAsync task inline (#2534) 2018-05-03 17:01:36 -07:00
Justin Kotalik 53cad943b3
Split ANCM into two dlls. (#811) 2018-05-03 13:49:31 -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
Pavel Krymets e49b0a34ab
Make exchange classes pure virtual (#792)
Make exchange classes pure virtual
2018-05-01 16:09:49 -07:00
pan-wang e36b0982bf
port change from v2 to v1 on resetting timeout for debugger attached (#787) 2018-05-01 15:50:51 -07:00
Nate McMaster fb2f89ed51
Factor out internal interface for default directory testing
Create an internal abstraction for finding the default directories for key storage. This allows us to run tests without squashing on keys on the developer machine. It also allows us to isolate test runs from reach other.
2018-05-01 14:22:42 -07:00
David Fowler b23d9b7679
Decouple connection objects from the server (#2535)
- Making progress towards being able to use the connection objects on the client side.
2018-05-01 12:01:24 -07:00
Pavel Krymets 2f2a0047a1
React to pool cleanup (#2526) 2018-04-30 08:37:15 -07:00
Pavel Krymets 6f2f496c3d
React to splitting memory pool (#2521) 2018-04-24 14:11:47 -07:00
Pavel Krymets 47f728160f React to splitting memory pool 2018-04-24 13:53:09 -07:00
pan-wang e888481548
update legal info for V1 assembly (#784)
update company name
2018-04-24 09:45:22 -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
pan-wang 1f4473f96d
fixing x86 build issue (#786)
fixing issue #780
2018-04-20 13:48:10 -07:00
pan-wang 7351b274f7
Add LPTHREAD_START_ROUTINE due to compiler change (fixing issue #780) (#783) 2018-04-18 16:03:12 -07:00
pan-wang 341f6c4f30
reset some timeout values to infinite if debugger is attached (#776) 2018-04-18 14:04:55 -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
pan-wang 5baa53393f
fixing fowarding handler for AsyncCompletion (#669)
to make sure ANCM does not release IIS pipeline until all WinHttp handlers get closed.
2018-03-20 15:56:16 -07:00
Pavel Krymets f1d8ca3045
Add CommitHash to file info (#700) 2018-03-20 09:20:37 -07:00
Stephen Halter 5fa658c800
Never run continuation inline in SocketAwaitable.OnCompleted (#2407) 2018-03-19 17:29:49 -07:00
pan-wang 2bb9a8aaf9 Adding handlerSettings configuration to aspnetcore schema for future use (#689) 2018-03-19 15:30:55 -07:00
Ryan Brandenburg 5e9dd7a5fc Set 2.0 baselines 2018-03-19 10:10:50 -07:00
Justin Kotalik cf4874997e
Heap allocate HTTP_DATA_CHUNK if the size of the response is too large. (#683) 2018-03-16 16:56:23 -07:00
Ryan Brandenburg ca15b2fbf6 Set 2.0 baselines 2018-03-16 10:50:27 -07:00
Ryan Brandenburg 3584e5f2ab Set 2.0 baselines 2018-03-16 10:50:05 -07:00
Ryan Brandenburg 4cf0b5d033 Set 2.0 baselines 2018-03-16 10:49:52 -07:00
Justin Kotalik 5e74b36c53
Verify read/write buffers, use offset parameter when reading. (#652) 2018-03-16 10:11:20 -07:00
Justin Kotalik 8ff9ce70c9
Fixes spelling (#679) 2018-03-16 09:27:40 -07:00
Ben Adams 2527face16 Query EndPoints once during reset (#2398) 2018-03-15 23:55:51 -07:00
Javier Calvarro Nelson acf7584d13 Reenable API Check 2018-03-15 21:44:34 -07:00
David Fowler 181dc0de24 React to pipelines changes 2018-03-15 16:58:53 -07:00
pan-wang e5661a46b7
do cleanup inside inprocessapplication destrutor (#676) 2018-03-15 16:47:21 -07:00
pan-wang 8e54e792fb
do shutdown check before processing request (#677) 2018-03-15 16:46:50 -07:00
Pavel Krymets 3ef9dd1640
Fix http_stop_calls_into_managed typo (#673) 2018-03-15 15:59:57 -07:00
David Fowler d31512528d
Items is now a first class property on ConnectionContext (#2395)
* Metadata is now a first class property on ConnectionContext
- Make IConnectionMetadata a manatory top level feature on ConnectionContext
- TransportConnection will lazily manifest ConnectionMetadata on first access.
This should avoid allocations since Kestrel isn't using this today.
2018-03-14 20:56:30 -07:00
pan-wang 9d064b24c7
enable debug print in aspnetcore.dll (#663) 2018-03-14 14:29:25 -07:00
Stephen Halter 9901f0f3e4
Default to the managed socket transport (#2392) 2018-03-14 11:50:10 -07:00
David Fowler 6de76c5e69
Respect the buffer size arguments on options (#230)
* Respect the buffer size arguments on options
- Allocate a buffer for receives and pass into CreateFromStream.
2018-03-14 08:48:45 -07:00
David Fowler 04eef791bc
Added transfer format to Protocol.Abstractions (#2391) 2018-03-14 08:16:38 -07:00
Ben Adams e65e58daf3 Reduce Sockets mainloop Send/Receive statemachine size (#2376)
* Use Completion to Advance in Error

* Drop ReadResult from statemachine
2018-03-13 23:04:12 -07:00
David Fowler 572627e88c
Handle posting to the libuv thread after StopAsync (#2388)
- Check if the post handle is disposed and noop if it is.
We also catch an ObjectDisposedException because it's an inherent race condition.
2018-03-13 19:37:39 -07:00
Ben Adams f6108928d8 Pass ReadOnlySequence via in (#2389)
* Pass ReadOnlySequence via in
2018-03-13 17:54:01 -07:00
Chris Ross (ASP.NET) bfdb48717f Host header format validation 2018-03-13 16:37:03 -07:00
Justin Kotalik 810c4bcb0a
Fix two AVs with InProcess (#656) 2018-03-13 16:07:55 -07:00
pan-wang d246c6f201
add port info to event log (#660) 2018-03-13 16:06:01 -07:00
pan-wang 7a511d6a94
websocket handler changes (#661)
add debug logging and reset connection in case of failure
2018-03-13 16:05:32 -07:00
David Fowler bcea8330c4
Clean up some left overs (#2385) 2018-03-13 14:10:06 -07:00
Nate McMaster 016fa66640
Map properties DotNetRestoreSources => RestoreSources for metapackage builds (#955) 2018-03-13 12:23:18 -07:00
Nate McMaster 349acb5bb3
Condense restore feed configuration to single location and remove package mirroring (#945) 2018-03-13 10:56:09 -07:00
David Fowler 2d8f3d95fe
Feature/clean up proto abstractions (#2383)
- This change aims to clean up the feature interfaces
 used by kestrel and exposed by protocol absractions. It splits out the
 IConnectionTransportFeature into smaller features that may or may
 not be implemented on the connection.
- Added all of the features from Socket.Abstractions
in an attempt to make it go away completely. As a result
the helper methods and extensions have all been added here.
- Change IConnectionHandler to take TransportConnection. This cleans up the interface and makes it more explicit what features are required by Kestrel
2018-03-13 10:27:04 -07:00
David Fowler fa3229b489
Revert "Clean up protocol abstractions (#2381)" (#2382)
This reverts commit ddd0b4c260.
2018-03-13 02:04:42 -07:00
David Fowler ddd0b4c260
Clean up protocol abstractions (#2381)
- This change aims to clean up the feature interfaces
 used by kestrel and exposed by protocol absractions. It splits out the
 IConnectionTransportFeature into smaller features that may or may
 not be implemented on the connection.
- Added all of the features from Socket.Abstractions
in an attempt to make it go away completely. As a result
the helper methods and extensions have all been added here.
- Change IConnectionHandler to take TransportConnection. This cleans up the interface and makes it more explicit what features are required by Kestrel
2018-03-13 01:43:49 -07:00
Stephen Halter 2a7bbeb8d7 Revert "React to pipelines changes (#2378)"
This reverts commit 2421df85d6.
2018-03-13 00:32:52 -07:00
David Fowler 2421df85d6 React to pipelines changes (#2378) 2018-03-12 23:59:04 -07:00
David Fowler e7d3b0c5f9
Remove KestrelThreadPool abstraction and replaced it with PipeScheduler (#2371) 2018-03-12 14:49:19 -07:00
pan-wang 02abb69cb2
fix missing reference/dereference handler (#651) 2018-03-10 09:50:48 -08:00
Stephen Halter 71bff00c0d
Use LibuvThread inspired IO Queue in Socket transport (#2368) 2018-03-09 15:04:20 -08:00
pan-wang 0b07894ea7
fix srwlock initialize (#647) 2018-03-09 11:47:54 -08:00
Justin Kotalik cb49b98b6f
Follow windows conventions for file versions (#646) 2018-03-08 16:28:27 -08:00
Pavel Krymets 77c5d2a971
Update to new corefx (#642) 2018-03-08 14:23:16 -08:00
Pavel Krymets fc80c15a65
Update to new corefx (#2369) 2018-03-08 14:23:07 -08:00
pan-wang 8dca8f030c
moving recycle and shutdown to applicationinfo (#639)
fix a race condition in processing request and app_offline, and optimize code logic
2018-03-08 12:24:25 -08:00
Justin Kotalik ad82bd31d8
Fix argument parsing for hostfxr, add native unit tests. (#635) 2018-03-08 11:53:12 -08:00
Justin Kotalik 00b1948937
Adds websocket feature detection, test cleanup. (#624) 2018-03-08 09:52:45 -08:00
Justin Kotalik ad4b172660
Remove build warnings and turn on warning as errors in IISLib. (#641) 2018-03-07 21:15:57 -08:00
Justin Kotalik 4eea754dc3
Don't create std log file for out of process when logs are disabled (#640) 2018-03-07 16:12:50 -08:00
Chris Ross (ASP.NET) 42fbba3520 More detailed request timeout exceptions #2245 2018-03-07 12:23:06 -08:00
pan-wang 419ae06935
fixing double locking issue (#637) 2018-03-07 12:02:04 -08:00
pan-wang f32addd408
Update RecycleApplication function (#634)
removing hostingmodel input from recycleapplication call and fix memory leak in recycle out of process application
2018-03-07 11:45:51 -08:00
pan-wang 0e28f34c1a Add general logging event to be used by the RequestHandler (#633) 2018-03-06 21:18:49 -08:00
pan-wang c833e7b994 change the logic on handling configuration change and adds shutdown logic (#610) 2018-03-06 16:47:02 -08:00
Nate McMaster e552b5861a
Switch default implementation of Pbkdf2 on Linux/macOS to Rfc2898DeriveBytes (#301)
Requires adding .NET Core 2.0 target framework to the package because only SHA1 is supported in .NET Standard 2.0
2018-03-06 09:31:03 -08:00
Justin Kotalik 4e8a9d2493
Move reading and writing of Pipelines to a single loop; Cancel Read every time we write. (#582) 2018-03-04 19:52:41 -08:00
pan-wang cbffeb33ea
fixing a stress issue (#619) 2018-03-02 17:34:09 -08:00
Nate McMaster 19c38d0af0
Merge branch 'release/2.1' into dev 2018-03-02 13:57:53 -08:00
pan-wang 17dd3e85cb
fix missing event log descriptions (#622) 2018-03-01 20:53:57 -08:00
Ben Adams 300453396a Pass StringValues via in (#2295) 2018-02-28 19:54:44 -08:00
Pavel Krymets 2dac2e34fa
Reac to pipes in corefx (#618) 2018-02-28 12:42:09 -08:00
Pavel Krymets 2c108d9ba1
React to pipes in corefx (#2337) 2018-02-28 12:41:51 -08:00
pan-wang fcbe74fbf1
fix coding guideline issue. Use BOOL instead of bool (#620) 2018-02-28 12:02:15 -08:00
Nate McMaster 9bd4a67f7d Remove Microsoft.NETCore.Platforms from tool package nuspec 2018-02-28 11:05:50 -08:00
Ajay Bhargav Baaskaran 63f0322810 Allow whitespace and backslash in path 2018-02-27 15:24:36 -08:00
pan-wang 71b90a31a9
websocket enabled check (#612) 2018-02-27 11:28:27 -08:00
pan-wang 792b72e71a
adding error description which was commented out previously (#613) 2018-02-27 09:41:09 -08:00
Justin Wyer 83bf2375b3 #2035 Do not await OnCompleted handlers before sending the Response (#2324) 2018-02-25 18:10:04 -07:00
Ben Adams de7e2a2573 Use enum for method rather than string compares (#2294) 2018-02-23 14:29:42 -08:00
Nikita Tsukanov 39951e892e Don't throw in HttpRequestStream.Flush (#2342)
Because read-only streams apparently can have Flush semantics and this behavior is expected by some of built-in stream wrappers (e. g. CryptoStream)

https://github.com/dotnet/corefx/pull/27327#pullrequestreview-98384813
https://github.com/aspnet/KestrelHttpServer/issues/2341
2018-02-23 09:51:09 -08:00
Ben Adams 6728e756b7 Sanitize and centralize exception throws (#2293)
* Sanitize and centralize exception throws
2018-02-23 09:24:20 -08:00
Ben Adams 6252ffd86a Flatten exception handling (#2313)
3 nested try blocks with 3 finallies in same function O_o
2018-02-22 16:46:18 -08:00
Ben Adams c57784447e Speed up TryGetAsciiString (#1973)
* Widen
* Remove TryGetAsciiStringVectorCheckShifts
* Add Span version to benchmarks
2018-02-22 16:45:31 -08:00
Ben Adams c0f88ebdc1 Faster IFeatureCollection.Get<TFeature> (#2290) 2018-02-22 16:44:38 -08:00
Nate McMaster 590c621c6f
Update README to reflect that dotnet-watch et. al. are bundled in the CLI 2018-02-22 12:55:03 -08:00
pan-wang dc62b9ba38
adding mof file for freb log (#603) 2018-02-22 11:14:29 -08:00
Justin Kotalik 4775706bbc
Add version numbers on aspnetcore.dll and aspnetcorerh.dll, remove unnecessary files (#601) 2018-02-22 10:03:51 -08:00
Nate McMaster 70dcbf6ed6
Add UnprotectKeysWithAnyCertificate 2018-02-22 08:50:03 -08:00
pan-wang 782b563a58
fixing empty logfile name in event log (#602)
Empty log file path was logged as we reset the stru too earlier. Changing the code order
2018-02-21 14:08:26 -08:00
Justin Kotalik 21b1febf2b
Adds environment variable feature for inprocess (#583) 2018-02-21 12:36:39 -08:00
pan-wang 1f6e2c8029
grant the config setting on 502.5 page setting (#600)
grant the config setting on 502.5 page setting
2018-02-21 11:27:48 -08:00
pan-wang e3d3b088ae
adding logging for outprocess start and application recycle (#573)
adding logging for outprocess start and application recycle
2018-02-21 10:58:34 -08:00
David Fowler 3fc69dc71f
Updated Streams to override Memory and Span overloads (#2333)
- Also plumbed Memory/Span through Kestrel over ArraySegment.
- Throw synchronously from the HttpRequestStream instead of async in some cases.
2018-02-21 00:00:46 -08:00
Justin Kotalik ff496ca580
Fix absolute paths to dotnet (#597) 2018-02-20 15:03:37 -08:00
Justin Kotalik c395db12e6
Fix path searching for where.exe and request handler parsing (#595) 2018-02-20 08:10:13 -08:00
brightcr a72e5db797 Removed code to set response headers - connection and upgrade as it should be set by caller e.g. WebSockets Middleware (#2329) 2018-02-19 08:36:28 -08:00
Ben Adams 1f8591184e Use ReferenceEquals not MulticastDelegate.equals (#2330)
It never inlines because its such a chunky method
2018-02-17 08:13:15 -08:00
Mike Harder 4afaa386db
Remove unnecessary usings (#2326) 2018-02-16 14:04:16 -08:00
Nate McMaster eea8c1a146
Support decrypting keys with X509Certificate that is not in the X509Store
The default implementation of EncryptedXml doesn't support using the RSA
key from X509Certificate to decrypt xml unless that cert is in the X509
CurrentUser\My or Localmachine\My store. This adds support for
decrypting with the X509Certificate directly. This is useful for Linux
(often Docker) scenarios, where the user already has a .pfx file, but
may not have added it to X509Store.
2018-02-16 12:11:20 -08:00
Justin Kotalik 87c3ca4752
Send stderr logs to anonymous pipe instead of file when logging is disabled. (#549) 2018-02-15 18:43:06 -08:00
Alessio Franceschelli 14332c5daf Allows Content-Length for 304 Not Modified response (#2321) 2018-02-14 16:01:07 -08:00
Justin Kotalik 4ca45d951f
Increment index by 1 as indexOf is inclusive when searching for dotnet.exe (#589) 2018-02-14 15:28:15 -08:00
Ryan Brandenburg a6165304b3 Add ExperimentalPackageVersion 2018-02-14 12:48:27 -08:00
Alessio Franceschelli 9341f72b8d Consumes request before closing connection (#2314) 2018-02-14 11:46:13 -08:00
Daniel Roth db8e0127c7 Remove hyphen from the dev-certs tool name 2018-02-13 09:33:02 -08:00
David Fowler 2156030460
Clean up some of protocol abstractions (#2311)
* Clean up some of protocol abstractions
- Renamed PipeConnection to DuplexPipe
- Removed MemoryPool from ConnectionContext
- Work around value tuple issue on net471
2018-02-10 10:39:21 -08:00
Nate McMaster a64672d6e9 Ensure publish directory is cleaned when /t:Clean is executed [ci skip] 2018-02-09 09:57:44 -08:00
Joshua Clark 5dd590e75e Add clearer exception message to HttpResponseStream ODE (#2305) 2018-02-08 17:28:00 -08:00
Redouane Sobaihi 8f25c4e8ca Include limits default values in intellisense comments. (#2304) 2018-02-08 11:37:01 -08:00
Justin Kotalik 9162ab3436
Default to using program files if where.exe doesn't find dotnet.exe (#578) 2018-02-06 12:12:23 -08:00
PRIYANSHU AGRAWAL 5aa3529dcb Merge PR #297 - minor code cleanup - remove duplicate allocation of DateTimeOffset 2018-02-06 08:18:12 -08:00
Justin Kotalik e035d0ed96
Fail fast on .NET Full Framework and log exceptions in hostfxr utility (#533) 2018-02-04 20:54:12 -08:00
Justin Kotalik 462c1c042a Merge remote-tracking branch 'origin/release/2.1' into dev 2018-02-02 16:23:54 -08:00
Justin Kotalik 5465216be9
React to hostfxr api changes (#577) 2018-02-02 16:07:51 -08:00
John Luo 1c31731d89 Merge branch 'release/2.1' into dev 2018-02-01 15:01:46 -08:00
John Luo e4e837fa24 Flatten dependencies of Microsoft.AspNetCore.All metapackage
Remove BrowserLink from Microsoft.AspNetCore.App
Remove version locking in .All metapackage
2018-02-01 11:51:27 -08:00
Nate McMaster 864ee50b4c Merge branch 'release/2.1' into dev 2018-02-01 10:40:07 -08:00
Nate McMaster 2233481d34 Ensure all packages are included in ArtifactInfo 2018-02-01 10:24:07 -08:00
John Luo 4c79a2fe59 Merge branch 'release/2.1' into dev 2018-01-30 12:04:18 -08:00
Pavel Krymets ddf3e948ad Merge release/2.1 2018-01-30 09:54:23 -08:00
Pavel Krymets 261b5836c1 Merge release/2.1 2018-01-30 09:39:33 -08:00
John Luo 818bb50e43 Update metapackages
.All will include all assets from .App

.All and .App will check TFM compatibility during inner builds

Remove unused runtime store templates
2018-01-29 17:40:19 -08:00
Pavel Krymets bc1a60704b
React to pipeline changes (#570) 2018-01-29 14:35:22 -08:00
Pavel Krymets a84095e5c3
React to pipelines changes (#2275) 2018-01-29 14:34:48 -08:00
David Fowler 8ea181f088
Use the OnWriterCompleted and OnReaderCompleted events directly. (#2280) 2018-01-29 14:27:47 -08:00
Pranav K c24b577175 Merge remote-tracking branch 'origin/release/2.1' into dev 2018-01-29 13:54:35 -08:00
Nate McMaster 011cf720e6 Add IServerVariablesFeature
Enables fetching variables directly from IIS when using in-process
hosting. This is not available for out-of-process hosting.

Other changes:
 - Update tests to only run if IIS Express has been updated to support
 the new schema for hostingModel
 - Add a simpler test fixture for in-proc testing
2018-01-29 12:51:26 -08:00
David Fowler 50b396cec6
Fixed race in sockets transport (#2279)
- Based on the changes you made earlier (f4d27e6), we trigger OnConnectionClosed before the socket is disposed in the SocketTransport. This moves the call to Output.Complete to happen after and thus fixes the race.
2018-01-29 12:41:45 -08:00
Pranav K b37880c985 Downgrade version of analyzers 2018-01-29 12:24:18 -08:00
Justin Kotalik 5d4fd2a592
Add project capability in 2.1 M.A.App for inproc hosting (#796) 2018-01-28 16:59:16 -08:00
Javier Calvarro Nelson 8280c1b73f Update Kestrel HTTPS developer certificate error message 2018-01-26 12:55:15 -08:00
Justin Kotalik 6f54ed1c68
Merge pull request #560 from aspnet/release/2.1 2018-01-26 12:50:45 -08:00
Andrew Stanton-Nurse a6fc4776da
fix Kestrel version to fix build (#227) 2018-01-26 12:27:41 -08:00
Justin Kotalik 85ec92012a
Remove AspNetCoreHostingModelProperty (#561) 2018-01-26 10:25:05 -08:00
Justin Kotalik 2181fdc943
Invoke where.exe to find dotnet.exe (#559) 2018-01-26 10:16:05 -08:00
Justin Kotalik 06348dded7
Change request timeout validation to 1 second. (#546) 2018-01-24 17:18:23 -08:00
Nate McMaster af8d61395f
React to changes in package layout requirements for global CLI tools (#385) 2018-01-24 16:09:20 -08:00
Chris Ross (ASP.NET) 4fd4fd9f41 Mark HTTP/2 as not supported with an AppContext switch override. 2018-01-24 15:29:59 -08:00
pan-wang d61a4ca89f
some fix for handling configuration change and recycling (#539) 2018-01-24 15:21:09 -08:00
Andrew Stanton-Nurse 6bc49ad6ca
update to use corefx package (#222) 2018-01-23 19:57:28 -08:00
Justin Kotalik 3d167c1e6c
Run http request on separate thread. (#545) 2018-01-23 14:56:47 -08:00
Sourabh Shirhatti 10f0f7b2ee Add project capability for inproc hosting (#532) 2018-01-23 14:05:27 -08:00
Pranav K 13cf9f76bd Add support for building Microsoft.AspNetCore.Analyzers metapackage 2018-01-22 13:54:50 -08:00
Justin Kotalik 6b4673bbdc
Fixes bitness alignment issue for 32bit (#527) 2018-01-19 17:39:42 -08:00
Justin Kotalik d7d502a04c
Free stdout after app closes (#535) 2018-01-19 15:52:21 -08:00
pan-wang d85ed094aa
gracefully shutdown the filewatcher thread (#530) 2018-01-19 14:31:51 -08:00
= 564e049ae9 Build Microsoft.AspNetCore.App
- Produce .App and .All metapackages and shared frameworks
2018-01-19 11:32:30 -08:00
Justin Kotalik 2204989660
Always load hostfxr parameters if the app isn't loaded (#529) 2018-01-19 09:59:04 -08:00
Stephen Halter 526dfdb332
Switch back to libuv as the default transport (#2257)
* Switch back to libuv as the default transport
2018-01-18 17:25:28 -08:00
Justin Kotalik 694411f79e
Fixing a typo (#279) (#523) 2018-01-18 13:50:34 -08:00
Justin Kotalik ab7ec622ef
Make paths absolute for in-process, fix relative path check (#513) 2018-01-17 16:43:49 -08:00
Pavel Krymets f8192fd63c
Workaround corefx/26390 (#295) 2018-01-17 10:39:07 -08:00
Stephen Halter cf371a4e74
Disable heartbeat warning when debugger is attached (#2258) 2018-01-16 18:11:11 -08:00
pan-wang 7b65bdb6ef
Panwang/addinglog (#508)
* adding windows event log

* adding windows event log

* fix a wrong bool variable

* some updates

* fix bad merge
2018-01-16 17:21:47 -08:00
Stephen Halter f4d27e67bb
Improve server shutdown logic (#2247)
Ensure connections abort when they don't close gracefully.
2018-01-16 16:43:45 -08:00
Javier Calvarro Nelson e6bb551018 Adds support for loading the developer certificate from a pfx file
* If we can't find a developer certificate on the certificate store
  we will look for a developer certificate on the file system if a
  password has been specified for the Development certificate.
* We will look at ${APPDATA}/ASP.NET/https/<<AppName>>.pfx for windows
  and fallback to ${HOME}/.aspnet/https/<<AppName>>.pfx
* In case the password wasn't specified through configuration, the file
  is not found on the file system or can't be loaded, we won't
  do anything.
2018-01-12 16:32:06 -08:00
= 1c4d23f79d Add TFM compatibility check to 2.1 metapackage 2018-01-11 12:37:11 -08:00
Javier Calvarro Nelson a036fa6bf4 Add support for cleaning certificates on the machine to the dev-certs tool 2018-01-11 11:26:39 -08:00
Chris Ross (ASP.NET) 420500e2a9 #2102 Always start the response before draining the request. 2018-01-09 15:59:19 -08:00
Steffen Forkmann 9a8dd6ef12 Allow Content-Length 0 for Websocket-Connection (#2217) 2018-01-09 15:01:09 -08:00
Justin Kotalik ee6256d941
Update sample to use aspnetcore.dll and aspnetcorerh.dll (#512) 2018-01-08 12:02:58 -08:00
Nate McMaster 48ed4a6997 Package aspnetcorerh in Microsoft.AspNetCore.Server.IIS 2018-01-08 10:15:06 -08:00
Chris Ross (ASP.NET) ad2149f5f0 Change ApplicationProtocol to ReadOnlyMemory<byte> #2182 2018-01-05 09:25:30 -08:00
Stephen Halter 664055fa43 Revert "Change ApplicationProtocol to ReadOnlyMemory<byte> #2182"
This reverts commit 2d3a01d48d.
2018-01-04 16:17:36 -08:00
Chris Ross (ASP.NET) 2d3a01d48d Change ApplicationProtocol to ReadOnlyMemory<byte> #2182 2018-01-04 15:26:40 -08:00
Justin Kotalik c3bc6fed9c
Adds RequestHandler dll and hostfxr changes from ANCM (#497) 2018-01-04 10:07:00 -08:00
Pavel Krymets 8cedb4eff3
React to pipeline changes (#503) 2018-01-04 10:01:16 -08:00
Pavel Krymets 1fa001e7db
React to pipeline changes (#2234)
React to pipeline changes
2018-01-04 09:54:42 -08:00
Justin Kotalik 5d8670243c
Use location of aspnetcore.dll rather than the activating process. (#500) 2018-01-03 11:49:43 -08:00
Justin Kotalik 119dee607b
Remove use of Dangerous Span calls for MemoryMarshal (#501) 2018-01-02 13:59:49 -08:00
Justin Kotalik d59b0ef38c Adds universe manifest and signing info 2017-12-29 12:48:01 -08:00
Murat Girgin 4e568c9266 Fixing a typo (#279) 2017-12-29 12:48:01 -08:00
Nate McMaster 261b27b700 Port CLI tools to be dotnet global tools
- Rename package IDs to dotnet-watch, dotnet-user-secrets, and dotnet-sql-cache
- Change packaging layout to support dotnet-install-tool
- Change package metadata to DotnetTool
- Drop support for DotNetCliToolReference (those will continue to be available under previous package ID's)
- Rename project files and folders
2017-12-29 08:42:36 -08:00
Justin Kotalik f27190a1f1 Adds InProcessHandler to calls, Refactor to remove IHttpContext completely 2017-12-22 13:36:34 -08:00
Chris Ross (ASP.NET) dfaf37cbba Implement config support #1290 #1879 #2016 #2166 #2167 #2188 2017-12-21 09:12:32 -08:00
ASP.NET CI fa9d7a7e8c Update dependencies.props
[auto-updated: dependencies]
2017-12-20 13:46:28 -08:00
BrennanConroy 2cf020103a Update to new corefx packages (#486) 2017-12-20 13:46:27 -08:00
pan-wang 30bbd87d81 Panwang/refactor (#277)
* Init check in for refactoring

* clean up to make app_offline work

* update loadassembly and build

* add configpath to aspnetcore_config to make recycle work

* Adds in process component to refactor (#249)

* outprocess first checkin (still missing marjor components)

* Adds In-Process support for shimmed module. (#257)

* Init check in for refactoring

* clean up to make app_offline work

* update loadassembly and build

* add configpath to aspnetcore_config to make recycle work

* Adds in process component to refactor (#249)

* outprocess first checkin (still missing marjor components)

* Adds In-Process support for shimmed module. (#257)

* load from bin start and catch unhandled exception

* Fixes request handler vcxproj

* Adds request handler to nuget package

* build issues

* outofprocess refactoring

* adding logging support

* enforce Warning As Error for build and enable process recycle for outofprocess

* fix AV for win32 build and update build flags

* Fixed m_srwLock lock issue

* remove dealock in loadmanagedapp and remove UseMFC

* Readd lost exception catching

* nuget package issue and status code

* fixing warnings

* Adds Headers

* removing web sockets exe for now

* remove flags

* nuspec stuff

* spelling

* only look in inetsvr for now (or same folder)

* rename method

* terminte thread before closing the handle to it

* couple changes related with AV

* null check and Kill thread for in process if dotnet timed out

* fix recursive lock issue reported by appverifier

* client disconnect support AV fix

* flow 502.5 process start failure error page

* Feedback from inperson code review
2017-12-20 13:46:27 -08:00
Pavel Krymets 3a0a133a02
Remove use of Dangerous* Span APIs and use MemoryMarshal instead (#2228) 2017-12-19 11:33:39 -08:00
Chris Ross (ASP.NET) d505d20ba7 Merge Kestrel.Https into Kestrel.Core. Fix sample. 2017-12-18 14:08:14 -08:00
Nate McMaster 2aaed28054
Rename dotnet-developercertificates to dotnet-dev-certs (#371) 2017-12-12 15:56:48 -08:00
Nate McMaster 1f3f010f87 Upgrade CLI tools to .NET Core 2.1 2017-12-12 14:37:47 -08:00
BrennanConroy 95dc8824c3
Upgrade package references and react to corefx API changes (#2212) 2017-12-11 09:02:37 -08:00
Justin Kotalik 8949f49637 merged 2017-12-07 18:55:29 -08:00
John Luo 911264eb04 Clean up shared framework generation. 2017-12-07 11:00:24 -08:00
John Luo e0daa126e2 Produce aspnetcore shared framework 2017-12-05 12:15:30 -08:00