Commit Graph

11490 Commits

Author SHA1 Message Date
Pavel Krymets 7e9397aa8a Remove unnecessary package references (#367) 2017-05-10 11:32:30 -07:00
Daniel Roth 698fabfa3e Update README.md 2017-05-09 21:08:50 -07:00
David Fowler c8b6a2be56 More FrameConnection refactoring (#1820)
* More FrameConnection refactoring
- This change reverts the change to complete the writer with an
exception on abort because of the number of first chance exceptions
that get thrown.
- This change also moves connection logging into FrameConnection instead
of being split between the ConnectionHandler and FrameConnection.
- Fixed issues with LibuvOutputConsumerTests that leak WriteReq since
cancelled writes no longer end the connection.
2017-05-09 17:40:25 -07:00
David Fowler c48113ad80 Refactoring and of FrameConnection and Frame (#1816)
* Refactoring and of FrameConnection and Frame
- Building on top of the last refactoring of FrameConnection, this change aims to clean up
the communication between the Frame and FrameConnection by removing some concepts and
being consistent about the communication between Frame and FrameConnection with or without
connection adapters. Changes include:
- Removing ConnectionLifetimeControl, ISocketOutput, StreamSocketOutput
- Moving more initialization of the frame to FrameConnection after the pipes
are setup
- OutputProducer communicates cancellation via the IPipeWriter instead of the output's IPipeReader.
- Frame always communicates via the pipes and that communications flows through the layers to the transport.
This means that each 1/2 of the adapted pipeline handles closing the right side of the transport at the
right time, propagating exceptions as necessary.
- This is how the flow looks now:
            ->                        ->
[transport]     [connection adapters]     [frame]
            <-                        <-
- Transports need to handle a ConnectionAbortedException on the output as a signal to stop
writing and end the connection. This will no longer try to drain the output but will just stop
writing and end the response immediately.
- Remove frame.Abort when cancellation on Write fails.
- Unify the connection shutdown logic
- Dispose 1/2 initialized connection adapters

#1815
2017-05-08 20:44:13 -07:00
Mike Harder c86336bb42 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-08 13:06:54 -07:00
Mike Harder 47ee65f318 Upgrade StackExchange.Redis.StrongName to version 1.2.3 (#231)
- Addresses package downgrade warnings (https://github.com/aspnet/DataProtection/issues/227)
2017-05-08 13:04:25 -07:00
John Luo c90414939c Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 17:11:16 -07:00
Chris R 129edaec7c Remove IHostingEnvironment dependency (#230) 2017-05-05 17:03:33 -07:00
Jass Bagga 078e313cb5 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-05 16:27:41 -07:00
Jass Bagga ec0ce4b638 Change TFM to netcoreapp2.0 (#78) 2017-05-05 16:17:15 -07:00
Jass Bagga 378136f794 Change TFM to netcoreapp2.0 (#78) 2017-05-05 16:12:46 -07:00
Stephen Halter 6e2fdda162 Simplify connection lifetime control flow (#1776)
* Also make IAdaptedConnection disposable
2017-05-05 16:11:01 -07:00
Chris Ross (ASP.NET) 3a7022fdcd Remove IHostingEnvironment dependency 2017-05-05 15:41:16 -07:00
Pavel Krymets 28b479c99a Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 14:35:41 -07:00
Pavel Krymets a9c165e666 netcoreapp2.0 (#1810) 2017-05-05 14:31:34 -07:00
David Fowler cd1568d7f4 Remove uv_shutdown because FIN is already sent during uv_close (#1811)
* Remove uv_shutdown because FIN is already sent during uv_close

#1808
2017-05-05 12:52:10 -07:00
Chris Ross (ASP.NET) 1757af47d5 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 11:43:59 -07:00
Chris Ross (ASP.NET) 539a13717e Migrate to netcoreapp2.0 2017-05-05 11:37:10 -07:00
Pavel Krymets 1aa8f23c6e Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:32:11 -07:00
Pavel Krymets 55396339a6 Update InternalAspNetCoreSdkVersion 2017-05-05 10:32:04 -07:00
Andrew Stanton-Nurse 23c4e056dd Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:30:17 -07:00
Andrew Stanton-Nurse 31eba3812f clean-up after netcoreapp2.0 (#174) 2017-05-05 10:24:36 -07:00
Pavel Krymets 5ea9981cdb Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:24:24 -07:00
Pavel Krymets 49a6be9b81 Update InternalAspNetCoreSdkVersion 2017-05-05 10:24:16 -07:00
Pavel Krymets 95d2ee5d8f Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:24:09 -07:00
Pavel Krymets 8a0a8a781e Update InternalAspNetCoreSdkVersion 2017-05-05 10:23:47 -07:00
Pavel Krymets 68868fe812 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:23:41 -07:00
Pavel Krymets 6a5fb3b638 Update InternalAspNetCoreSdkVersion 2017-05-05 10:23:34 -07:00
Pavel Krymets b85a0a8af3 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:22:40 -07:00
Pavel Krymets 0eca220069 Update InternalAspNetCoreSdkVersion 2017-05-05 10:22:33 -07:00
Pavel Krymets 71f95c0447 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:20:56 -07:00
Pavel Krymets cb377203a4 Update InternalAspNetCoreSdkVersion 2017-05-05 10:20:48 -07:00
Pavel Krymets d91d627c04 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:20:16 -07:00
Pavel Krymets 1e639aca49 Update InternalAspNetCoreSdkVersion 2017-05-05 10:20:05 -07:00
Andrew Stanton-Nurse a9cf465661 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-04 19:28:20 -07:00
Andrew Stanton-Nurse 319f95db5e netcoreapp20 (#173) 2017-05-04 19:26:46 -07:00
Stephen Halter 557cf29e4a arespr/knownmethods-optimizations cleanup 2017-05-04 12:27:22 -07:00
Stephen Halter f464760bf8 Merge branch 'arespr/knownmethods-optimizations' into dev 2017-05-04 11:44:54 -07:00
David Fowler 9072e0ba26 Added a ConnectionAbortedException to Transport.Abstractions (#1806)
* Added a ConnectionAbortedException to Transport.Abstractions
- To avoid hard coding TaskCanceledException in each transport
- This PR tries to keep compatibility by converting the ConnectionAbortedException
to a TaskCanceledException on exceptions in FrameRequestStream. The downside is that
this conversion causes an async state machine to be created per call to ReadAsync.
CopyToAsync isn't that bad because it's a single long running task.
2017-05-03 19:38:34 -07:00
David Fowler b21f84543a Use WebHostBuilder as an implementation detail of TestServer (#1804)
- This will make tests run more similarly so we can swap out the
transport more easily.
2017-05-03 19:35:09 -07:00
Mike Harder a23a255e2e Fix whitespace. 2017-05-03 11:43:39 -07:00
Mike Harder cfc41d3845 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-03 11:42:10 -07:00
Mike Harder db517803c8 Move System.Data.SqlClient version from csproj to dependencies.props (#293) 2017-05-03 11:30:51 -07:00
Pranav K 33fddca251 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:02:53 -07:00
Pranav K 6c0c31640f Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:02:14 -07:00
Pranav K f0a3b2943c Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:02:12 -07:00
Pranav K b6f4e52000 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:02:10 -07:00
Pranav K 9c9468f956 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:02:00 -07:00
Pranav K bdd3ff6d0e Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:01:46 -07:00
Pranav K 8aeca90757 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:01:41 -07:00