Commit Graph

21330 Commits

Author SHA1 Message Date
David Fowler 5472763fc2 Added feature to control http body behavior (#821)
* Added feature to control http body behavior
- Added a flag to allow synchronous IO
2017-04-22 02:52:40 -07:00
David Fowler 650a3ccc26 Pass exception to Complete (#1739) 2017-04-21 23:31:59 -07:00
Chris R b7ed993d9d Remove obsolete Azure ForwardedHeaders workaround. (#359) 2017-04-21 19:02:11 -07:00
Pranav K fb12815786 Remove System.Reflection.Metadata 2017-04-21 18:10:45 -07:00
John Luo d9661ed70d Un-revert changes for static WebHost API
Keeping the same netstandard1.3 TFM so as to not break apps targeting net46.
2017-04-21 14:06:20 -07:00
David Fowler a749939be4 Clean up libuv connection (#1726)
* Clean up libuv connection
- Cancel all pending flushes on the input writer before
disposing the stream handle.
- Complete the pipe before disposing the socket
- Added logging for connection pause/resume.
- Added test
2017-04-21 13:13:05 -07:00
David Fowler feb9d1281e Tweak libuv shutdown sequence (#1735)
* Tweak libuv shutdown sequence
- Increase timeouts for thread and listener shutdowns
- Remove post.Unreference call from AllowStopRude
2017-04-21 13:12:37 -07:00
Kiran Challa 7dff704c34 Unskipped Nano server's standalone tests 2017-04-21 12:15:19 -07:00
David Fowler 383a13f1f9 Remove unused dependency (#1032) 2017-04-21 10:37:35 -07:00
Ryan Brandenburg 9daa61084e Make DataStoreErrorLogger._log static 2017-04-21 09:26:04 -07:00
Nate McMaster 31635abf6b Resolve warnings about duplicate imports of Microsoft.Common.targets 2017-04-21 08:54:29 -07:00
David Fowler dcea15dba7 Skipped newly failing AddressRegistration tests failing tests on OSX and Linux (#1732)
* Unblock CI
2017-04-21 01:54:44 -07:00
Kiran Challa e606844509 Unskipped standalone functional tests 2017-04-21 01:43:48 -07:00
Kiran Challa 51f77ea7f3 Workaround: On xplat machines, provided executable permission to published standalone application executable 2017-04-20 23:56:29 -07:00
Mike Harder 10775adf5b Revert "Adds new WebHost API for creating IWebHost & IWebHostBuilder with defaults:"
This reverts commit 55d50b2d41.
2017-04-20 18:47:00 -07:00
Mike Harder 992407fb35 Revert "Update build targets and clean up"
This reverts commit 587985b497.
2017-04-20 18:46:34 -07:00
John Luo 587985b497 Update build targets and clean up 2017-04-20 17:17:57 -07:00
damianedwards 55d50b2d41 Adds new WebHost API for creating IWebHost & IWebHostBuilder with defaults:
- #24
2017-04-20 16:55:56 -07:00
Kiran Challa 95aadb3f4f removed dead code 2017-04-20 16:47:26 -07:00
Kiran Challa 2388cca5ac Workaround for issue https://github.com/aspnet/Routing/issues/390 2017-04-20 16:47:26 -07:00
Stephen Halter a14eabce9a RequestTests and ResponseTests cleanup (#1723) 2017-04-20 16:33:05 -07:00
Hao Kung 4f20655850 Set DisplayName for auth 2017-04-20 14:19:32 -07:00
Nate McMaster ee9feedc27 Improve implementation of IHttpUpgradeFeature
After upgrade has been accepted by the server:
 - Reads to HttpRequest.Body always return 0
 - Writes to HttpResponse.Body always throw
 - The only valid way to communicate is to use the stream returned by IHttpUpgradeFeature.UpgradeAsync()

Also, Kestrel returns HTTP 400 if requests attempt to send a request body along with Connection: Upgrade
2017-04-20 12:42:58 -07:00
Hao Kung 4566cf9fdb Add DisplayName to scheme 2017-04-20 12:42:12 -07:00
Brice Lambson e3180baea5 Re-enable Entity Framework tests
Resolves #350
2017-04-20 12:11:22 -07:00
Andrew Stanton-Nurse 198fe34813 react to removal of PlatformAbstractions (#36) 2017-04-20 11:09:29 -07:00
Andrew Stanton-Nurse c3f658d232 react to removal of PlatformAbstractions (#781) 2017-04-20 11:01:22 -07:00
Stephen Halter bebba2a113 Make UnrootedConnectionsGetRemovedFromHeartbeat test less flaky (#1727) 2017-04-20 10:58:48 -07:00
Kiran Challa e2e350ec6c [Fixes #763] Investigate System.Security.Claims references required to make compilation work 2017-04-20 10:24:48 -07:00
David Fowler d0743806d8 Disable UnrootedConnectionsGetRemovedFromHeartbeat because it's flaky 2017-04-20 10:21:20 -07:00
Kiran Challa e450dd707e Deleted obsolete razor views and models 2017-04-20 10:03:39 -07:00
Andrew Stanton-Nurse 14b99f74fa react to removal of PlatformAbstractions (#168) 2017-04-20 09:31:10 -07:00
Andrew Stanton-Nurse bfeff186e3 react to removal of PlatformAbstractions (#75) 2017-04-20 09:31:03 -07:00
Andrew Stanton-Nurse ce650eee7f react to removal of PlatformAbstractions (#1023) 2017-04-20 09:30:40 -07:00
Pavel Krymets 5f4eb5cbbd Package *.HostingStartup.deps.json files as part of package cache build (#34) 2017-04-20 08:39:47 -07:00
Pavel Krymets 4c8b548b30 Change *.HostingStartups to target netcoreapp2.0 so we get .deps.json for free. (#24) 2017-04-20 08:39:26 -07:00
David Fowler d1494224f4 Make the tests that use the Heartbeat more deterministic. (#1724)
- Added Start to Heartbeat and made OnHeartbeat internal
- Explicitly call start in tests
2017-04-20 01:41:37 -07:00
Stephen Halter a053ca4758 Move shutdown logic from transport to core (#1707)
* Move shutdown logic from transport to core
* Use weak references to track FrameConnections
2017-04-19 18:08:36 -07:00
David Fowler d40dbb81ea Fixed broken tests that leak UvWriteReq 2017-04-19 17:50:43 -07:00
Chris R 76a4299b52 #326 Fix API set target 2017-04-19 16:09:57 -07:00
Nate McMaster 7a3a731686 Refactor address binding and handle EAFNOSUPPORT
- Simplify KestrelServer by refactoring address binding into a separate class
 - Use strategy pattern to implement address binding for different sceanrios
 - Add fallback from binding 0.0.0.0 if binding to [::] fails (can happen if UvException with EAFNOSUPPORT is thrown)
2017-04-19 15:58:12 -07:00
David Fowler 42d82a507d Make all UvRequest objects normal GC handles (#1698)
* Make all UvRequest objects normal GC handles
- This avoids the cost of using GCHandle.Alloc per operation.
- It *does* mean that we need to explicitly dispose UvRequest objects
after using them (which we did before anyways). This change does
add a few try catch statements to make sure we always dispose the UvRequest
if there are synchronous exceptions.
- This is ~1.5% of the overhead in the benchmarks today
- Keep track of all allocated UvRequest objects with a WeakReference in DEBUG
and assert none are kept around after cleaning up.
- Fixed a leak where we don't clean up UvWriteReq objects when writing
to the named pipe.
2017-04-19 15:16:11 -07:00
Hao Kung 7fd15a2ae6 Fix tests 2017-04-19 14:32:28 -07:00
Hao Kung bb73898ca2 Disable api check 2017-04-19 14:14:46 -07:00
= 853b3847ad Updates for WebHostBuilderContext overloads 2017-04-19 14:02:23 -07:00
glennc 2b07e88a58 Add overloads to ConfigureServices to accept the WebHostBuilderContext and make the context accessible in more locations. 2017-04-19 14:00:17 -07:00
Hao Kung da30688fa9 Disable api checks for now 2017-04-19 13:58:38 -07:00
Hao Kung 99aa3bd35d Auth 2.0 2017-04-19 13:00:03 -07:00
Hao Kung 4237a93ee8 MusicStore => Auth 2.0 2017-04-19 12:00:39 -07:00
John Luo 7ee08665c1 Fix build script 2017-04-19 11:42:25 -07:00