Commit Graph

18043 Commits

Author SHA1 Message Date
Stephen Halter 7aa7b3e0a9 Track connections until request processing completes
- Paves the way to allow request processing to continue during server shutdown
  even after a client disconnects.
2017-04-14 16:26:27 -07:00
Nate McMaster c08c57f764 Reject HTTP/1.1 requests that do not have a correct Host header
Improves Kestrel to reject requests that don't conform to HTTP spec.

RFC 7230 section 5.4: "A server MUST respond with a 400 (Bad Request)
status code to any HTTP/1.1 request message that lacks a Host header
 field and to any request message that contains more than one Host
 header field or a Host header field with an invalid field-value."

See https://tools.ietf.org/html/rfc7230#section-5.4.

Other changes:

 - update VS code settings to work better with CLI 2.0
 - update tests that were subject to infinite hangs
2017-04-14 15:48:21 -07:00
Chris R 52be2b750e #21 Initial site extension and packaging 2017-04-14 14:52:57 -07:00
Hao Kung f9e19ed522 DefaultAuthentication => DefaultAuthenticate 2017-04-14 14:42:10 -07:00
John Luo 6e22dbcdc6 Missed rename in commit 2017-04-14 12:14:29 -07:00
John Luo da403d4d16 Long path woes 2017-04-14 10:50:24 -07:00
Andrew Stanton-Nurse a9a8f45158 change autobahn tests to use dynamic port (#167) 2017-04-14 10:48:44 -07:00
David Fowler 9e37272f06 Clean up the logic in DoReceive 2017-04-14 01:39:56 -07:00
David Fowler aedd061865 Tweaks to socket transport (#1687)
- Style changes: Sort usings, use more var and C#7
- Added ConfigureAwait to stop dead locks with xunit
- Remove duplicate handling of aborts in the receiver
- Handle the case where output ends before input
2017-04-14 01:14:21 -07:00
John Luo 9e92b1189b Fix typo 2017-04-14 00:33:00 -07:00
Kiran Challa 229d817d83 Unskipped standalone Windows OS functional tests 2017-04-14 00:06:37 -07:00
Kiran Challa b52430674f Unskipped standalone functional tests 2017-04-13 23:21:29 -07:00
Geoff Kizer efa0a48fb1 Add initial Socket transport for Kestrel (#1659)
- This change adds the initial socket transport for Kestrel, all of the tests pass but there are still
a couple of things that aren't done yet.
- The functional tests support running both on both transports but tests aren't running for sockets right now. We need to parameterize these. 
- TimeoutServerTests hard code the libuv transport, this needs to support any transport.
- There is no handling of connection stopping on application shutdown. This is being implemented in kestrel core so transports don't need to handle it. Sockets won't be the default transport until that is the case.
- Performance needs to be looked at, today the SocketTransport doesn't dispatch by default and we're not buffering in kestrel.core, this can hurt as the number of kernel calls map 1:1 with application writes.
2017-04-13 23:10:06 -07:00
John Luo 0723d46ec4 Honor PreferHostingUrls #1575 2017-04-13 18:12:53 -07:00
John Luo 4d6bdba554 Add nuspec and version.txt to artifacts 2017-04-13 17:32:23 -07:00
John Luo 404960ce1a Use name suggested in Coherence-Signed#439 2017-04-13 16:10:30 -07:00
Pavel Krymets 3045cff3c5 Fix adapted output pipe options (#1682) 2017-04-13 15:54:48 -07:00
John Luo fa96eaf655 Add build version number to package cache zip names 2017-04-13 15:39:23 -07:00
Kiran Challa fb28efe4f8 Removed code supplying runtime identifier to deployers 2017-04-13 15:07:18 -07:00
Kiran Challa 0e0019b4fe Removed code supplying runtime identifier to deployers 2017-04-13 14:55:29 -07:00
Kiran Challa 0822dd74ac Updated NuGetPackageVerifier.json to add exclusion for Microsoft.AspNetCore.Server.IntegrationTesting 2017-04-13 14:51:10 -07:00
Andrew Stanton-Nurse bad5d7c8f7 fix build 2017-04-13 14:25:23 -07:00
Kiran Challa f1a59d030e Supply runtime identifier on publishing standalone apps 2017-04-13 14:19:18 -07:00
Kiran Challa 1d3747c071 Skipped standalone tests temporarily 2017-04-13 13:12:18 -07:00
Meirion Hughes 37df30929c Update Aurelia SPA template 2017-04-13 20:54:56 +01:00
Stephen Halter 6036f27f52 Fix deadlocks in startup and shutdown 2017-04-13 12:47:34 -07:00
Kiran Challa 676f4ba3e4 Converted test projects to run on netcoreapp2.0 2017-04-13 11:15:40 -07:00
Jonathan Channon f2f643ad15 Updated XML documentation for HttpResponse.Body (#816) 2017-04-13 09:57:35 -07:00
Andrew Stanton-Nurse e25a2eced8 port dotnet/corefx#17444 to WebSockets (#162) 2017-04-13 09:55:45 -07:00
Nate McMaster ed4a27a827 Remove ListenOptions.Scheme and move IConnectionFilter to .Internal namespace
Add an internal API to ListenOptions to determine if an endpoint is configured to use HTTPS. This is a temporary as the design of connection adapters and configuration will churn before release.
2017-04-13 09:45:26 -07:00
David Fowler 8258d300e2 Small tweaks to timer logic (#1668)
- Avoid null refs in tests by ignoring null IKestrelTrace
- Use a static callback for the timer callback

Fixes #1667
2017-04-13 09:29:43 -07:00
Chris R a8c61b5abc Add ConfigureAwait to prevent xunit hangs 2017-04-13 07:46:51 -07:00
Chris R 8b6d933711 Add ConfigureAwaits to prevent test deadlocks 2017-04-13 07:26:51 -07:00
Chris R e043fa871e Make IServer Start and Stop async 2017-04-12 22:23:05 -07:00
Chris R 62f74d5be0 #947 Add IServer.StopAsyc, IWebHost.StopAsync, and make Start async 2017-04-12 21:56:19 -07:00
Kiran Challa e08e63a033 Updated to use 1.0.2 version of PackagePublisher 2017-04-12 21:30:59 -07:00
Stephen Halter 11ab602b2f Make timeout logic transport agnostic (#1649)
* Make timeout logic transport agnostic

* PR feedback

* More PR feedback
2017-04-12 16:15:46 -07:00
Hao Kung f6cf5293a0 Add challenge/forbid overloads for MVC 2017-04-12 16:03:35 -07:00
Mike Harder 5f9fa5c009 Temporarily remove `dotnet run` argument separator
- Workaround for "dotnet run no longer passes additional arguments to application" (https://github.com/dotnet/sdk/issues/1118)
2017-04-12 14:22:18 -07:00
Mike Harder 710864eff7 Skip NtlmAuthenticationTests.NtlmAuthentication test
- Workaround for regression in `dotnet run` (https://github.com/dotnet/sdk/issues/1118)
2017-04-12 13:38:34 -07:00
John Luo b49fc08f8b Prevent USERSECRETS001 warnings while building cache 2017-04-12 13:24:04 -07:00
Stephen Halter db159190bd Don't fail tests if port 5000 is in use (#1650) 2017-04-11 23:13:59 -07:00
John Luo 77b2ffba00 React to dotnet store command update 2017-04-11 21:45:41 -07:00
John Luo 936231f327 React to cli command rename 2017-04-11 20:10:54 -07:00
Pranav K 09ccfd8f94 Use the 0.4.0 version of Microsoft.AspNetCore.IntegrationTesting 2017-04-11 15:42:28 -07:00
Nate McMaster e0e972e98c Update travis and appveyor build settings to include rel branches 2017-04-11 14:54:36 -07:00
Nate McMaster 734c735fb5 Simplify console output and fix color output on CMD 2017-04-11 14:45:52 -07:00
Nate McMaster cd5fa7ec1f Update package verion to 1.0.1 rtm and pin build dependencies and tools 2017-04-11 14:34:07 -07:00
Erick Galassi ea429cccf4 Minimize CSS in production builds (all templates) 2017-04-11 14:51:31 +01:00
Pavlo Glazkov c0205cfc4e Fix watchOptions in webpack.config.js being ignored by WebpackDevMiddleware (#806)
This enables Docker HMR workflow and the workaround mentioned in this comment: https://github.com/aspnet/JavaScriptServices/issues/806#issuecomment-290081291
2017-04-11 14:35:57 +01:00