Commit Graph

39960 Commits

Author SHA1 Message Date
Andrei Ignat 1840d6823b Addresses #5694 (#5695)
* Add "
`Microsoft.AspNetCore.StaticFiles": "1.2.0-*"`
to project,json
Add
`app.UseStaticFiles();`
in the
`public void Configure(IApplicationBuilder app)`
from `Startup` class.

Addresses #5694
2017-01-26 08:18:19 -08:00
moozzyk c997ea8165 Converting pipelines to channels 2017-01-26 08:04:58 -08:00
moozzyk 1119bcf1b3 Sharing channel connections 2017-01-26 08:04:56 -08:00
David Fowler 05cc7792df Synchronize the background scan and closing of connections
- It was possible for the application to be torn down during
a background scan. When that happened, the timer would be disposed
before the end of the scan and would throw an ObjectDisposedException
when timer resumption happened. This change introduces a lock that avoids that
race.

Fixes #161
2017-01-26 07:50:29 +00:00
Pranav K 8f085c8e5d Create an x86 process to target 32-bit applications
Fixes #47
2017-01-25 17:46:26 -08:00
Pranav K a031c4badb Update OpenId package versions 2017-01-25 17:09:26 -08:00
Jass Bagga 9b1271ba19 Remove obsolete DefaultHtmlGenerator ctor (#5711) 2017-01-25 16:25:12 -08:00
David Fowler 162cd1fc06 Handle misbehaving user code (#159)
* Handle misbehaving user code
- Execute EndPoint logic on a threadpool thread
- Turn synchronous exceptions into async ones to unify the
error handling
- Added tests
2017-01-25 23:45:43 +00:00
David Fowler 934f6a70d1 Various fixes in HttpConnectionDispatcher (#151)
- The connection state object is manipulated by multiple parties in a non thread safe way. This change introduces a semaphore that should be used by anyone updating or reading the connection state. 
- Handle cases where there's an active request for a connection id and another incoming request for the same connection id, sse and websockets 409 and long polling kicks out the previous connection (https://github.com/aspnet/SignalR/issues/27 and https://github.com/aspnet/SignalR/issues/4)
- Handle requests being processed for disposed connections. There was a race where the background thread could remove and clean up the connection while it was about to be processed.
- Synchronize between the background scanning thread and the request threads when updating the connection state.
- Added `DisposeAndRemoveAsync` to the connection manager that handles`DisposeAsync` throwing and properly removes connections from connection tracking.
- Added Start to ConnectionManager so that testing is easier (background timer doesn't kick in unless start is called).
- Added RequestId to connection state for easier debugging and correlation (can easily see which request is currently processing the logical connection).
- Added tests
2017-01-25 22:27:55 +00:00
Cesar Blum Silveira 9051bbf322 Fix deadlock in SocketOutput (#1304). 2017-01-25 14:11:21 -08:00
Kiran Challa 42ae78a360 [Fixes #5012] ProducesAttribute should not inherit from ResultFilterAttribute 2017-01-25 14:00:35 -08:00
Cesar Blum Silveira 448a927a0f Merge branch 'rel/1.1.1' into dev 2017-01-25 13:56:39 -08:00
Kiran Challa 8ac6b6699f [Fixes #4945] Simple string returned by controller action is not a valid JSON! 2017-01-25 13:29:18 -08:00
Cesar Blum Silveira aacb7d7453 Fix flaky tests. 2017-01-25 11:00:31 -08:00
Cesar Blum Silveira 0d2b60b315 Merge branch 'rel/1.0.3' into dev 2017-01-25 10:55:04 -08:00
Cesar Blum Silveira ba3976aeeb Update to version 1.1.1. 2017-01-25 10:30:16 -08:00
Cesar Blum Silveira c8da6e0628 Fix deadlock in SocketOutput (#1304). 2017-01-25 10:13:52 -08:00
Cesar Blum Silveira fe089a8826 Update SDK version to 1.0.0-preview2-003154. 2017-01-25 10:12:03 -08:00
Dan Kirkham acd1dc5e24 Fixed inconsistent single quotes (#154) 2017-01-25 09:43:02 -08:00
Cesar Blum Silveira dcc98c0cc6 Merge branch 'rel/1.0.3' into dev 2017-01-25 09:35:00 -08:00
moozzyk 3ad8efb4ab Fixing test after getid to negotiate rename 2017-01-25 09:32:26 -08:00
Cesar Blum Silveira b9de869a2d Add SDK version to global.json. 2017-01-24 17:10:53 -08:00
David Fowler 9eb42cce2d Clean up disposal of connection state (#148)
* Clean up disposal of connection state
- Removed IDisposable and added a DisposeAsync method to ConnectionState
- Added ApplicationTask and TransportTask to ConnectionState as first class
properties so that it is easy to see (in a process dump or debugger) the
outstanding tasks that Sockets is keeping track of on a per connection basis.
2017-01-25 00:08:08 +00:00
Pawel Kadluczka fb4a99ffff Fixing test hangs, adding timeouts. (#149) 2017-01-24 15:51:58 -08:00
Chris R 779115b1ad #407 Add ContentLength to IHeaderDictionary 2017-01-24 15:14:46 -08:00
Cesar Blum Silveira 4ac842b050 Update to version 1.0.3. 2017-01-24 14:57:51 -08:00
Chris R 119945ca02 Cache the ContentLength header value 2017-01-24 14:57:00 -08:00
Ben Adams ecca980c91 Implement IHeaderDictionary.ContentLength 2017-01-24 14:55:48 -08:00
Pranav K 32cd737b62 Update to VS RC3 2017-01-24 14:17:53 -08:00
Ryan Nowak ec45d8ea8c Remove typeof from codegen
The C# codegen was using some of the new names for various TagHelper
constructs instead of the old namespace.

This change reverts to the old names.
2017-01-24 13:45:50 -08:00
Chris R 56bd85aaf2 #298 Add a timeout for draining requests on shutdown 2017-01-24 13:43:17 -08:00
David Fowler a1c8d3d841 Fix the TS client to respect the new endpoint
- Seems like the ts client wasn't updated to use /negotiate instead
of /getid
2017-01-24 21:12:53 +00:00
David Fowler 1e957a9e5a Allow processing of incoming invocations in parallel (#143)
* Allow processing of other incoming invocations in parallel
- Don't wait on the response of an invocation to pick up
the next message from the channel.
- Unhandled exceptions should continue bubbling up correctly
2017-01-24 20:46:17 +00:00
Nate McMaster 822cb35624 Prepare 1.1.0 release and pin floating versions 2017-01-24 10:53:05 -08:00
Ryan Nowak 32efe43f85 Delete some dead code 2017-01-24 10:29:30 -08:00
Ryan Nowak 03b63d97a2 Quick fixes from MVC
We're close to hooking up new Razor to MVC. This is a set of enabling
'quick fix' changes to resolve some blockers to using Razor.Evolution in
the product.

Main issues:
 - Types not public enough - anything in the .Legacy namespace is still
   slated from 'improvement'
 - Wrong references. We don't want .Workspaces in MVC, so moving the heavy
   lifting of TagHelper discovery to CodeAnalysis.Razor.
2017-01-24 09:22:28 -08:00
Pranav K 6fd04366b1 Make dotnet-install runnable 2017-01-23 16:11:57 -08:00
Pranav K 0ce64a5b83 Update the path to dotnet-install.sh 2017-01-23 16:05:25 -08:00
pan-wang 044648a213 fixing graceful shutdown on Win7 and IISExpress 2017-01-23 15:33:17 -08:00
Pranav K e4eb08dd68 Use the dev builds of IntegrationTesting since we require a csproj fix. 2017-01-23 15:32:55 -08:00
Pranav K aa31e20ea9 Use rel/1.0.0-msbuild3 of KoreBuild and downgrade test references to 1.1.0 2017-01-23 15:18:59 -08:00
Hao Kung 2d15778346 UserStore: Add protected virtuals for queries 2017-01-23 14:44:05 -08:00
Pranav K 864dd694e0 Use a branch that lets us produce packages with a specific build number 2017-01-23 13:54:41 -08:00
Ryan Nowak 5885feb7c0 Fixes a parsing bug with the AcceptHeaderParser
When we find an invalid character at the end of a media type value we
should advance and skip over it.
2017-01-23 13:12:40 -08:00
Pranav K 7fcf5f2529 Pin the SDK to preview4 2017-01-23 11:39:47 -08:00
Pranav K 4420390f73 Precompilation does not work for applications using relative path
Adds tests for #27, #33
2017-01-23 11:38:48 -08:00
Pranav K 501540c76e Use the list of Content files specified in the project as a source
Fixes #59
2017-01-23 11:38:48 -08:00
Pranav K c1ef1e533f Consolidate options to a single file 2017-01-23 11:38:33 -08:00
Eilon Lipton 8a74148fe1 Add link to XmlResult repo 2017-01-23 10:21:26 -08:00
Cesar Blum Silveira 815db3d210 Merge branch 'benaadams/flush' into dev 2017-01-23 09:45:23 -08:00