Jonathan
75a7552360
Add Referer to GetTypedHeaders ( #949 )
...
* Add a Referer property
* Add Uri to KnownParsers
* Add property for Origin
* Add Origin
* Encode the URI
From feedback from Tratcher
* Inline the var 'out' declaration
* Remove Origin
Since it does not cleanly map to a Uri object since it can contain multiple values.
* Took back that whitespace
* Reverted
* Add using for UriHelper.Encode
2017-10-12 11:00:23 -07:00
Jonathan
01b4530fa7
Add Content-Security-Policy ( #950 )
...
* Add Content-Security-Policy
* Add Content-Security-Policy-Report-Only
* Fix previous edit
2017-10-11 21:30:29 -07:00
Javier Calvarro Nelson
cda9ec6fe4
Remove the implicit hosting dependency on WebHostBuilderFactory shared sources
2017-10-11 15:16:03 -07:00
Stephen Halter
fdb4184dbf
Sockets transport ( #2100 )
...
* Make Sockets the default transport
* Create separate Libuv and Sockets functional test projects
* Fix functional tests that fail with Sockets
* Moved OneToTenThreads test to Kestrel.Transport.Libuv.Tests
* Fix systemd activation tests to use libuv transport
* Dispose Sockets PipeFactory
* Improve Socket's server-side abort handling
* Add explicit rebinding test
2017-10-11 15:14:35 -07:00
Jass Bagga
f1efb29b18
Use ContractResolver instead of forcing to lower case ( #112 )
...
Addresses #90
2017-10-11 14:09:35 -07:00
Chris Ross
a542d06d9e
#38 Remove project attributes that will be added centrally
2017-10-11 10:09:05 -07:00
Cesar Blum Silveira
d46d2ce193
HTTP/2: validate request headers prior to starting new stream.
2017-10-10 13:12:34 -07:00
John Luo
633cb68149
Populate WebHost configuration with command line arguments if provided
2017-10-09 14:30:20 -07:00
Jonathan
badaa7393b
Add header names for CORS ( #951 )
2017-10-09 11:58:37 -07:00
Nate McMaster
611b6a23ad
Update how PackageReference versions are set
...
Changes:
- Remove floating versions
- Disable myget feeds during a Universe build
- Use package-specific MSBuild variables. Pattern = `packageId.Pascalize() + "PackageVersion"`, with a few exceptions.
- Remove myget feeds during build
- Remove obsolete 'GenerateLineup' targets/tasks
2017-10-09 11:32:21 -07:00
Ryan Nowak
56ae2e0177
Respond to feedback about handler factory
...
- Handler factories are now associated with the dispatcher entry
- Handler factory is now an interface
2017-10-06 10:11:05 -07:00
Justin Kotalik
f91a941f8d
Moves in-process to UseIISIntegration, removes Server.IIS namespace ( #443 )
2017-10-06 09:52:42 -07:00
Ryan Nowak
63d2cc4637
Changes due to davidfowl feedback
...
Changed dispatchers to IMatcher, added a context.
Removed a bunch of outdated cruft and updated the sample to use
attribute-routing like entries.
2017-10-05 18:31:23 -07:00
Jass Bagga
2f8951e244
Productize HttpMethodEndpointSelector ( #463 )
...
Addresses #452
2017-10-05 15:14:17 -07:00
pan-wang
746f578c3c
Panwang/inproc ( #174 )
...
refactoring the code to support inprocess (step 1) with app_offline and Graceful shutdown support
2017-10-04 17:35:11 -07:00
Cesar Blum Silveira
11ce1395e5
HPACK fixes and improvements.
2017-10-04 12:59:41 -07:00
Stephen Halter
156ddfc4e8
Fix EOF handling of TlsStream.ReadAsync ( #2094 )
2017-10-04 12:38:19 -07:00
Justin Kotalik
36bede16e9
Remove check for using ANCM with Win7. ( #1235 )
2017-10-03 16:43:12 -07:00
Justin Kotalik
ea7bc30dd3
Avoid AV if schema change doesn't exist. ( #177 )
2017-10-03 14:21:39 -07:00
John Luo
37c12d5a64
Add sources
...
for the final time
2017-10-03 11:46:57 -07:00
Kristian Hellang
826e89a2d1
Use HttpMethods helpers
2017-10-03 16:58:06 +02:00
John Luo
f6fa111333
Another attempt
2017-10-02 19:18:12 -07:00
=
11b25e7c87
Build and pack Runtime Store
...
- Also add targets to build all metapackage.
2017-10-02 16:43:30 -07:00
Justin Kotalik
9dc69fe361
Adds support for ANCM in process ( #425 )
2017-10-02 16:01:46 -07:00
John Luo
a63932a492
Add option to suppress writing startup messages
2017-10-02 14:08:54 -07:00
Cesar Blum Silveira
1b1137b880
HTTP/2: connection error when receiving frames disallowed by stream states.
2017-10-02 10:24:57 -07:00
Henk Mollema
d6a3c3f83e
Add helper to register IHttpContextAccessor ( #947 )
2017-10-02 08:31:12 -07:00
Jass Bagga
f49cbd1b25
Selectors initialization and DispatcherBase logging ( #451 )
2017-09-29 17:50:45 -07:00
Cesar Blum Silveira
bb9840a552
HTTP/2: do not ACK PING frames received with ACK set.
2017-09-29 16:40:01 -07:00
Ryan Nowak
abb41302e9
Add a dispatcher by default ( #462 )
...
This change adds the TreeDispatcher by default to the pipeline. You can
register DispatcherDataSource instances to configure it.
2017-09-29 16:06:38 -07:00
Justin Kotalik
b0d91c17f1
Add Strict-Transport-Security header name ( #944 )
2017-09-29 15:14:46 -07:00
Chris Ross (ASP.NET)
be6b099f6c
#189 Reduce noise for load and commit logs.
2017-09-29 14:13:51 -07:00
Pavel Krymets
a2303c732f
Move tests to seperate app ( #107 )
2017-09-29 08:55:31 -07:00
Ryan Nowak
bd750ad76d
Making endpoints and addresses easier
...
This makes endpoints and addresses easier to work with by dropping the
'metadata first' approach for the the things that are really at the core
of the dispatcher.
2017-09-28 22:07:32 -07:00
John Luo
7ec8cc5fad
Cleanup and add test for CreateDefaultBuilderOfT
2017-09-28 15:58:14 -07:00
Fanie Reynders
07bf8d02a0
Added support for allowing a shorthand notation to build and run a Webhost with the default configuration including a typed Startup class
2017-09-28 15:05:43 -07:00
Ryan Nowak
5fed462123
Add tree dispatcher
2017-09-27 14:34:09 -07:00
Chris R
321639b0eb
Add AuthenticationProperties to AuthenticateResult for failures.
2017-09-27 14:00:55 -07:00
Cesar Blum Silveira
551c1ebc0b
Configure enabled protocols per endpoint and add HTTP/2 w/ prior knowledge support ( #2067 ).
2017-09-27 10:14:39 -07:00
Nate McMaster
f3bb4080b0
Use CustomAfterMicrosoftCommonTargets in dotnet-user-secrets
2017-09-26 11:59:29 -07:00
Nate McMaster
3dd029a8b5
Simplify the MSBuild targets in dotnet-watch
...
Use CustomAfterMicrosoftCommonTargets instead of MSBuildProjectExtensionsPath.
- No more need to write to obj/$(Project).g.dotnetwatch.targets
- Works on project that have changed default file locations via BaseIntermediateOutputPath
Simplify DotNetWatch targets
- Condense to one targets file
- Simplify dependency chain of targets
- Build project references in a parallel
2017-09-26 11:59:29 -07:00
Ryan Nowak
eeebefee1b
Add data source
2017-09-26 10:17:48 -07:00
Justin Kotalik
231cbffe1a
Create shared package folder for IIS Integration In-process. ( #397 )
2017-09-25 15:53:33 -07:00
Javier Calvarro Nelson
eb9417b577
Re-enable API Check
2017-09-25 15:16:53 -07:00
Justin Kotalik
f130330db8
Updating Xunit and dotnet versions ( #143 )
2017-09-25 15:10:31 -07:00
Javier Calvarro Nelson
49237c7651
Add API check baselines for 2.0
2017-09-25 15:03:09 -07:00
Javier Calvarro Nelson
835ba2218a
Update API check baselines to 2.0
2017-09-25 11:41:36 -07:00
Ryan Nowak
7685e17e80
Add Addresses and link generation
2017-09-24 23:16:34 -07:00
Javier Calvarro Nelson
6687f4eefc
Update API check baselines to 2.0
2017-09-22 17:52:20 -07:00
Cesar Blum Silveira
343ce0f01b
HTTP/2: close connection with PROTOCOL_ERROR when a stream depends on itself.
2017-09-22 16:35:12 -07:00
Javier Calvarro Nelson
475712d613
Update API Check baselines
2017-09-22 14:16:39 -07:00
Ryan Nowak
41f26dc69d
Add endpoint disambiguation
...
- Better sample of metadata
- Sample shows how conventional routing would work
- Added endpoint disambiguation
2017-09-22 10:54:20 -07:00
KPixel
27a3a89b60
Simplifying ApplicationLifetime.ExecuteHandlers() ( #1228 )
2017-09-22 06:16:48 -07:00
Chris Ross
253be73b6f
Misc generic host pr feedback ( #1222 )
2017-09-21 15:09:52 -07:00
Chris Ross
8a01a1f790
Remove explicit LangVersion ( #345 )
2017-09-21 15:09:22 -07:00
Pavel Krymets
cec21b03f2
Revert 2.0 templates
2017-09-21 14:15:11 -07:00
Pavel Krymets
e5a9bd3dd7
Remove IncludeScopes from logger configurations
2017-09-21 14:06:07 -07:00
Cesar Blum Silveira
e3533885a8
HTTP/2: close connection with PROTOCOL_ERROR when receiving a frame with an even stream ID.
2017-09-21 12:26:09 -07:00
Hao Kung
bab16971ae
Add comment for claims transform
2017-09-21 11:57:31 -07:00
Cesar Blum Silveira
a4887f4caf
HTTP/2: close connection with PROTOCOL_ERROR when receiving GOAWAY frame with non-zero stream ID.
2017-09-21 11:57:31 -07:00
Cesar Blum Silveira
fc56552b2a
HTTP/2: close connection on PING frame with non-zero stream ID.
2017-09-21 11:23:15 -07:00
Cesar Blum Silveira
555a881cb7
HTTP/2: close connection with PROTOCOL_ERROR when an unknown frame type is interleaved with headers.
2017-09-21 11:20:52 -07:00
Cesar Blum Silveira
e2af346733
HTTP/2: close the connection with PROTOCOL_ERROR when a PUSH_PROMISE frame is received.
2017-09-21 11:20:33 -07:00
Ryan Nowak
d652b86852
Split RVD in twain
2017-09-21 09:19:10 -07:00
Justin Kotalik
2e540341db
Adds in-process mode to ANCM. ( #152 )
2017-09-20 16:09:56 -07:00
Chris Ross (ASP.NET)
e3c7e23cc4
Logging#543 Reorder request disposal due to logging.
2017-09-20 15:28:26 -07:00
Cesar Blum Silveira
9687079723
Check if HTTP/2 frame writer has already been aborted.
2017-09-20 11:15:31 -07:00
Cesar Blum Silveira
9944c0fd43
Fix reading DATA frames with maximum length.
2017-09-20 11:15:31 -07:00
Cesar Blum Silveira
c8f9364e3e
Expose connection features to HTTP/2 connections.
2017-09-20 11:14:15 -07:00
Chris Ross (ASP.NET)
1e1e89b457
logging/#543 Clear HttpContext.User when the user is disposed.
2017-09-19 15:55:14 -07:00
David Fowler
37e122a0c6
Added overloads without the HostingContext ( #1220 )
...
* Added overloads without the HostingContext
2017-09-18 14:48:45 -07:00
Pavel Krymets
46dadbb186
Make RegistryPolicyResolver an interface to fix 3d party DI ( #275 )
2017-09-18 13:43:45 -07:00
David Fowler
712c992ca8
Add BackgroundService, a base class for long running HostedServices ( #1215 )
...
* Add BackgroundService, a base class for long running HostedServices
- Today the IHostedService pattern is a StartAsync/StopAsync pattern. Neither of these
methods are supposed to return a long running task that represents an execution. If
you wanted to have some logic run on a timer every 5 minutes, it's unnatural to do so
with simple async idioms. This base class implements IHostedService and exposes
a pattern where a long running async Task can be returned.
- The token passed into ExecuteAsync represents the lifetime of the execution.
- StartAsync and StopAsync were made virtual to allow the derived type to
indicate Start failures.
- Added tests
2017-09-18 12:55:54 -07:00
Justin Kotalik
500668619f
Detect duplicate startups in HostingStartupAssemblies ( #1183 )
2017-09-18 11:47:34 -07:00
Pavel Krymets
f8ee044efa
Revert Antares test bundle changes ( #220 )
2017-09-18 11:01:10 -07:00
Ryan Nowak
134096d9cb
Relayer implementation
...
This refactor introduces two major changes
1. Now creating the 'handler' delegate happens inside the endpoint
middleware. This allows you to short circuit even harder, AND to create
endpoint funcs that capture and use 'next' to rejoin the middleware
pipeline.
2. Relayered the implementation to have routing plug into the dispatcher.
It wasn't immediately apparent to me that this was the right thing to do,
but I think we will need to do things this way to deliver the kind of
back-compat experience we need to do.
The idea that I have is that 'attribute routing' will be the 'default'
entry in the dispatcher. Adding additional conventional routes or other
IRouter-based extensibility will be possible through adapters - but the
default experience will be to add items to the 'attribute route'.
So. We will need to port the attribute routing infrastructure to the
dispatcher library.
We may also need to make RVD into a subclass of something in the
dispatcher assembly.
2017-09-17 18:29:22 -07:00
Javier Calvarro Nelson
c24c717eee
Add extension methods in our test host package to streamline setup of apps.
...
* Create a sources package to encode the convention followed in our templates to create a WebHost.
* Add an extension method to setup the content root relative to the solution folder.
* Add a factory method to create a WebHostBuilder based on the pattern followed in our template.
2017-09-15 15:08:35 -07:00
Jass Bagga
d22bb2c908
Add logger extensions with event ids ( #405 )
...
Addresses #393
2017-09-15 14:26:47 -07:00
Julian Dominguez
1c3fa82908
Preserve state in HostBuilder.Properties ( #1212 )
2017-09-15 02:00:44 -07:00
Cesar Blum Silveira
a31d1e024c
Merge code paths duplicated between HTTP/1.x and HTTP/2 implementations ( #2017 ).
...
- Most of the shared code is in the HttpProtocol class (former Frame)
- Virtual calls handle protocol-specific things
- Move the ProcessRequestsAsync loop to HttpProtocol
- Implement HTTP/1.x request processing in Http1Connection and HTTP/2
in Http2Stream, with Http1Connection<T> and Http2Stream<T> subclassing
those classes in order to handle the generic HttpContext parameter
- Split MessageBody into Http1MessageBody and Http2MessageBody,
with MessageBody containing shared member variables and methods
2017-09-14 17:35:57 -07:00
Jass Bagga
b01072eb47
Use RouteTemplate and TemplateMatcher ( #443 )
...
Addresses #438
2017-09-14 15:24:40 -07:00
Chris Ross (ASP.NET)
ae9da9290e
#1163 Implement the generic host
2017-09-14 14:48:06 -07:00
Justin Kotalik
5c2906a7c6
[WIP] Fixing win7 compilation issues. ( #141 )
2017-09-13 14:40:00 -07:00
Jonathan
5128efe0e8
Fix HTTP capitalization in comment ( #931 )
2017-09-12 22:19:52 -07:00
Kiran Challa
5eae687ddd
Updated EnableCorsAttribute and UseCors extension to not have to supply a policy name.
2017-09-12 17:06:05 -07:00
smarts
2b9516703b
Update comments to use correct class name. ( #937 )
2017-09-12 13:53:04 -07:00
pan-wang
a732b106f5
Fix websocket close handshake issue and race condition when websocket client disconnect without close handshake ( #151 )
2017-09-11 18:44:15 -07:00
Justin Kotalik
509ddc6ced
Adds ANCM in-process flag. ( #144 )
2017-09-11 15:30:54 -07:00
Jass Bagga
a9b47f6722
Startup experience ( #442 )
...
Addresses #437 and #440
2017-09-11 15:10:33 -07:00
Steve Sanderson
c39c1aaa38
Move 2.1 templates to netcoreapp2.0 until we use an SDK that supports netcoreapp2.1
2017-09-11 18:53:59 +01:00
Jass Bagga
bf5c043de3
Refactor GetPath in JsonPatchDocumentOfT ( #107 )
...
Addresses #98
2017-09-11 09:54:29 -07:00
Pavel Krymets
ee009982dc
Add KeyVault encryption to DataProtection ( #273 )
2017-09-11 08:51:56 -07:00
Steve Sanderson
5eeee55b13
Add missing content files for Microsoft.DotNet.Web.ProjectTemplates.2.1
2017-09-11 16:36:06 +01:00
Steve Sanderson
75f955a60a
Fix Coherence 2.0.x refs
2017-09-11 16:25:34 +01:00
Steve Sanderson
df699bf7b2
Update all SPA projects to use 2.1.x dependencies
2017-09-11 16:20:23 +01:00
Steve Sanderson
28ed6ea7d8
Simplify template dependency configuration
2017-09-11 16:19:22 +01:00
Steve Sanderson
a6c2a458da
Change 2.1 template dependencies to easily-updatable external value
2017-09-11 16:17:07 +01:00
Steve Sanderson
98d6e2a1b6
Add new Microsoft.DotNet.Web.ProjectTemplates.2.1 package, taking contents from dotnet/templating
2017-09-11 15:44:56 +01:00
Steve Sanderson
414cfde099
Update Microsoft.DotNet.Web.ProjectTemplates.2.0 contents from dotnet/templating
2017-09-11 15:42:06 +01:00
Steve Sanderson
692faf10ac
Correct all the 2.0 projects to reference 2.0 dependencies, not 2.1.0-*
2017-09-11 15:40:03 +01:00
Steve Sanderson
7ab3ed2e74
Update Microsoft.DotNet.Web.ProjectTemplates.1.x content from dotnet/templating
2017-09-11 15:27:01 +01:00
Steve Sanderson
39b3be4515
Add Microsoft.DotNet.Web.Client.ItemTemplates package copied from dotnet/templating repo
2017-09-11 15:24:10 +01:00
Steve Sanderson
c972aed96b
Add a convenient way to manually override all templates' package dependency versions, e.g., when branching for a release
2017-09-11 13:33:02 +01:00
Steve Sanderson
cd93041f76
Simplify substitution logic by removing need for string parsing
2017-09-11 12:56:02 +01:00
Stephen Halter
1e465e9643
Improve timeout logic
2017-09-08 12:50:01 -07:00
Steve Sanderson
72a01fb8f1
Run NuGet Package Verifier on build
2017-09-08 15:43:13 +01:00
Steve Sanderson
2fa1fe8ce2
Fix build output so that versioned packages go into the correct directory when run through KoreBuild
2017-09-08 15:24:15 +01:00
Vladimir Sadov
f0ade24cf7
Updating to new toolset compiler. ( #2043 )
...
* Updating to new toolset compiler.
Now includes ref escaping rules.
* newer version.
2017-09-06 15:52:47 -07:00
Jass Bagga
0f51c56c3f
Combine ExpandoObjectAdapter and DictionaryAdapter ( #106 )
...
Use JsonDictionaryContract in the DictionaryAdapter and combine with ExpandoObjectAdapter
2017-09-05 16:07:25 -07:00
John Luo
8b30efbe75
Use chained configuration
2017-09-05 12:54:00 -07:00
Steve Sanderson
57aae1f755
Fix failing test for Aurelia template
2017-09-05 16:42:22 +01:00
Steve Sanderson
eece782496
Make template nuspecs consistent. Include SPA template packages projects in solution.
2017-09-05 11:37:39 +01:00
Steve Sanderson
039de8cd13
Copy SPA template packages from aspnet/javascriptservices repo
2017-09-05 11:02:39 +01:00
Pavel Krymets
3c58fde9a4
Fix tests ( #101 )
2017-09-01 14:58:24 -07:00
Pavel Krymets
fbacee2621
Report package versions to TeamCity
2017-09-01 08:26:35 -07:00
Pavel Krymets
305ab1fa4c
1.0, 1.1 template tests ( #100 )
2017-08-31 15:49:14 -07:00
Jass Bagga
ebd0baa458
Add dispatcher packages
2017-08-31 11:54:27 -07:00
Nate McMaster
370bc7d7c5
Use PackageLineup to manage PackageReference versions
2017-08-30 17:22:09 -07:00
Nate McMaster
a0269fb0ad
Use PackageLineup to manage PackageReference versions
2017-08-30 17:11:46 -07:00
Nate McMaster
64ed1c7945
Use Directory.Build.props/targets ( #1235 )
2017-08-30 14:48:58 -07:00
Steve Sanderson
9f4d43c295
Make build output clearer (log info, don't pack irrelevant project)
2017-08-30 22:46:25 +01:00
Luke Latham
6b8449f491
Sortable log files with stdoutLogFile ( #131 )
...
Fixes #130
2017-08-30 14:33:30 -07:00
Steve Sanderson
378c93e7d6
Also inject EntityFramework package versions dynamically
2017-08-30 22:27:47 +01:00
Justin Kotalik
1e8a22dae3
NameValueHeaderValue Escaping/Unescaping quoted-strings and helpers ( #913 )
2017-08-30 14:03:12 -07:00
Nate McMaster
5589365cac
Use Directory.Build.props/targets ( #227 )
2017-08-30 12:58:16 -07:00
Stephen Halter
284367db9f
Improve ConnectionLimitMiddleware and connection pipeline building ( #2010 )
...
* Improve ConnectionLimitMiddleware and connection pipeline building
* Add IDecrementConcurrentConnectionCountFeature
* Flow connection features from connection middleware
2017-08-30 11:30:20 -07:00
Steve Sanderson
d6fdeb7e19
Automatically inject ASP.NET version from KoreBuild lineup into template nupkg files
2017-08-30 19:10:07 +01:00
Kiran Challa
12e9430d89
Sets the default cookie secure policy to None
2017-08-30 10:25:14 -07:00
Steve Sanderson
1255418146
Modernize build system (use Directory.Build.* and KoreBuild lineups)
2017-08-30 14:46:37 +01:00
Nate McMaster
e5825641ce
Use PackageLineup to manage PackageReference versions
2017-08-29 12:43:13 -07:00
Nate McMaster
9c699f74b0
Use Directory.Build.props/targets
2017-08-29 12:41:50 -07:00
Nate McMaster
9c78b5a8be
Use PackageLineup to manage PackageReference versions
2017-08-29 12:39:24 -07:00
Nate McMaster
4595e91a7d
Use Directory.Build.props/targets
2017-08-29 12:37:28 -07:00
Ben Adams
e7743cbb78
Shorter LibuvThread locks ( #2034 )
2017-08-29 12:21:45 -07:00
Nate McMaster
e87f13d267
Use PackageLineup to manage PackageReference versions
2017-08-29 12:14:28 -07:00
Nate McMaster
7e22244eed
Use Directory.Build.props/targets
2017-08-29 12:13:48 -07:00
Nate McMaster
82ba6b51ef
Use PackageLineup to manage PackageReference versions
2017-08-29 12:08:10 -07:00
Nate McMaster
59290efa6a
Use Directory.Build.props/targets
2017-08-29 12:06:04 -07:00
Nate McMaster
1297798546
Use PackageLineup to manage PackageReference versions
2017-08-29 11:38:56 -07:00
Nate McMaster
5cf936d3cd
Use Directory.Build.props/targets
2017-08-29 11:36:17 -07:00
Nate McMaster
e67d85d30c
Use PackageLineup to manage PackageReference versions
2017-08-29 11:31:54 -07:00
Nate McMaster
44f9a7083b
Use Directory.Build.props/targets
2017-08-29 11:30:03 -07:00
Justin Kotalik
e97e6546c2
Add structured syntax suffixes and facets to MediaTypeHeaderValue ( #921 )
2017-08-29 10:20:56 -07:00
Nate McMaster
5ca9f8928f
Use PackageLineup to manage PackageReference versions
2017-08-29 09:55:55 -07:00
Nate McMaster
9a4a43cc6a
Use Directory.Build.props/targets
2017-08-29 09:52:04 -07:00
Steve Sanderson
bb5420dc5e
Add .sln file and Template.csproj that builds all the template packages
2017-08-29 17:48:49 +01:00
Steve Sanderson
482a4e646e
Rename 'template_feed' to 'src' for consistency with other repos
2017-08-29 17:48:44 +01:00
Nate McMaster
11377e08f6
Use PackageLineup to manage PackageReference versions
2017-08-29 09:42:24 -07:00
Nate McMaster
479eb49ca9
Use PackageLineup to manage PackageReference versions
2017-08-29 09:41:54 -07:00
Nate McMaster
5178176219
Use Directory.Build.props/targets
2017-08-29 09:41:12 -07:00
Nate McMaster
9634f7fd9c
Use Directory.Build.props/targets
2017-08-29 09:30:22 -07:00
Nate McMaster
1e0fe87c20
Use PackageLineup to manage PackageReference versions
2017-08-29 09:21:41 -07:00
Nate McMaster
a4432e694c
Use Directory.Build.props/targets
2017-08-29 09:20:34 -07:00
Nate McMaster
9b45e7f118
Use PackageLineup to manage PackageReference versions
2017-08-29 09:16:24 -07:00
Nate McMaster
28acde451e
Use Directory.Build.props/targets
2017-08-29 09:14:03 -07:00
Pavel Krymets
b53a6f9a25
Install site extension on top of existing dotnet ( #97 )
2017-08-29 08:40:12 -07:00
Nate McMaster
f63354713f
Use PackageLineup to manage PackageReference versions
2017-08-28 15:38:43 -07:00
Nate McMaster
8530f91507
Use Directory.Build.props/targets
2017-08-28 15:36:59 -07:00
Nate McMaster
ac0ce9c8ee
Use PackageLineup to manage PackageReference versions ( #162 )
2017-08-28 14:19:18 -07:00
Nate McMaster
9e72cb0783
Use PackageLineup to manage PackageReference versions
2017-08-28 11:33:57 -07:00
Nate McMaster
a93cf9ff5b
Use Directory.Build.props/targets ( #95 )
2017-08-28 11:20:30 -07:00
Nate McMaster
ab2730ea4f
Use Directory.Build.targets/props
2017-08-28 10:37:05 -07:00
Nate McMaster
97b9ff3b33
Use PackageLineup to manage PackageReference versions
2017-08-28 09:46:47 -07:00
David Fowler
9d8556e7c4
Added FrameConnection.OnConnectionClosed back ( #2028 )
2017-08-26 21:20:06 -07:00
David Fowler
7854c0604a
Remove the events on ConnectionContext ( #2023 )
...
- Use the pipe events and removed the Tasks from ConnectionContext
- Remove OnConnectionClosed from FrameConnection. Since the `FrameConnetion` is a single middleware, not the entire pipeline, we shouldn't need to wait on the connection close there.
- It seems like the callbacks are rooted on the pipe even after they fire. This needs to be investigated in pipelines.
2017-08-26 20:19:55 -07:00
Ben Adams
09be7c416a
Use preparsed version, rather than reparsing ( #2021 )
...
Current path is:
Parser -> HttpVersion Enum -> Get Version String -> Set `HttpVersion` with string -> Convert back to Enum
Can just set the enum directly since its already parsed.
Also using the const rather than strings; where the strings are in code
2017-08-26 17:18:16 -07:00
Ben Adams
088f7e32ae
Reset StatusCode & ReasonPhrase directly ( #2025 )
2017-08-26 17:14:45 -07:00
John Luo
5a3ce9fd5d
Update doc comments
2017-08-25 12:13:57 -07:00
Pavel Krymets
c7fabda615
Use installdotnet target and clear all nuget packages to force offline ( #92 )
2017-08-25 11:13:06 -07:00
Nate McMaster
29fd1b3b33
Update README to show 2.0.0 as the latest packages
...
[ci skip]
2017-08-25 09:13:43 -07:00
Steve Sanderson
e2030fb1fa
Handle publicPath=/ in HMR. Fixes #1191 .
2017-08-24 17:52:35 -07:00
Eric
9b1cbedffc
WebSocketClient.ConnectAsync throws when the provided CancellationToken is cancelled.
2017-08-24 15:14:59 -07:00
Jass Bagga
3d6a8615de
Support DynamicObject types ( #99 )
...
Addresses #38
2017-08-24 15:11:01 -07:00
Kiran Challa
ce68ec23c0
Using WebEncoders' Base64Url encode/decode functionality
2017-08-24 14:00:49 -07:00
John Luo
b187c1adc4
Add fallback when resolving application name
...
- Use the name of the EntryAssembly when application name is not specified
2017-08-24 11:00:01 -07:00
Pavel Krymets
9778c29007
Allow building an pushing site extension for azure functional testing ( #87 )
2017-08-23 14:55:27 -07:00
Javier Calvarro Nelson
964b671288
[ Fixes #1012 ] Make it possible to override services when using UseStartup.
...
* Add IStartupConfigureServicesFilter to wrap ConfigureServices.
* Add IStartupConfigureContainerFilter<TContainerBuilder> to wrap
ConfigureContainer.
* Make StartupLoader build a thunk for configure services that
resolves all instances of IStartupConfigureServicesFilter and
IStartupConfigureContainerFilter<TContainerBuilder> and wraps
invocations to ConfigureServices and ConfigureContainer respectively.
* Refactor building the ConfigureServices callback into a private
builder class due to the increased complexity in the process.
2017-08-23 14:32:51 -07:00
Cesar Blum Silveira
d72175a846
Make StopAsync multi-thread safe ( #377 ).
2017-08-23 12:08:43 -07:00
Jass Bagga
d4b64af0e6
Use DictionaryKeyResolver for ExpandoObjectAdapter ( #100 )
...
Addresses #102
2017-08-23 10:30:11 -07:00
Justin Kotalik
6657f4cf36
Adds MaxAge property to CookieOptions/Builder ( #904 )
2017-08-22 16:57:04 -07:00
Justin Kotalik
1ea0647ae2
Update comments to reflect code behavior ( #1182 )
2017-08-22 16:46:00 -07:00
David Fowler
dc9ed60465
Create the connection logging scope in ConnectionHandler ( #2013 )
...
- Instead of doing it on the FrameConnection only. This will
make sure all middleware logs get the connection id as part of their scope.
2017-08-22 14:32:58 -07:00
Nate McMaster
51aecc2c18
Use Directory.Build.props/targets
2017-08-22 12:32:16 -07:00
Steve Sanderson
d6ae8829b6
In HMR, don't rely on default JsonSerializer settings. Fixes #688
2017-08-21 17:11:47 -07:00
Ben Adams
11a9b6498d
Don't alloc IEnumerable in Reset for ITlsConnectionFeature ( #2009 )
...
* Don't alloc IEnumerable for ITlsConnectionFeature
* Delegate to ConnectionFeatures and determine scheme once
2017-08-21 17:01:05 -07:00
Steve Sanderson
a40adab38d
In non-ASP.NET apps, default project path to current working directory. Fixes #1100 .
2017-08-21 16:40:59 -07:00
Steve Lathrop
a7e715c88f
Small grammatical fix to README.md
2017-08-21 15:37:58 -07:00
David Fowler
2e6687031d
Added initial connection middleware pipeline ( #2003 )
...
* Added initial connection middleware pipeline
- Implemented IConnectionBuilder on ListenOptions. Kept IConnectionAdapter for now.
- Delay the configure callback for ListenOptions until the server has started.
- Added ConnectionLimitMiddleware and HttpConnectionMiddleware
- Expose ConnectionAborted and ConnectionClosed on ConnectionContext and
IConnectionTransportFeature
- Updated the tests
- Removed IConnectionApplicationFeature
- Moved Application to IConnectionTransportFeature
2017-08-21 12:11:27 -07:00
Justin Kotalik
27b0f60f09
ForbidAsync now uses correct Schemes method ( #918 )
...
* ForbidAsync now uses correct Schemes method
* comment
* adds tests
2017-08-19 22:09:22 -07:00
Nate McMaster
a993c2a5ff
Use PackageLineup to manage versions (revert revert)
...
We resolved the issues with PackageLineup and partial graph builds.
This reverts commit 01bf47170f .
2017-08-18 16:31:06 -07:00
Nate McMaster
01bf47170f
Revert lineups change until we work out issues with PackageLineup
...
This reverts commit a2c0410e39 .
2017-08-18 10:43:19 -07:00
Nate McMaster
a4320ccbda
Upgrade to xunit 2.3.0-beta4
2017-08-18 09:55:10 -07:00
Justin Kotalik
312e0da556
Fix case sensitivity on Startup classes and methods ( #1166 )
2017-08-18 09:45:12 -07:00
Justin Kotalik
c74d0e7458
Adds .Value to logger calls to avoid calling .ToUriComponents on a bad header. ( #1169 )
...
* Add .Value to request properties in HostingRequestStartLog
2017-08-18 09:43:04 -07:00
Stephen Halter
14f122fb9f
Measure Writing in FrameWritingBenchmark
2017-08-17 16:59:24 -07:00
Nate McMaster
a2c0410e39
Use PackageLineup to manage package versions
2017-08-17 16:16:40 -07:00
Ben Adams
442ee80039
Less awaits for Reponse Write(Async)
2017-08-17 15:51:22 -07:00
Nate McMaster
87db7cceb6
Stop producing Microsoft.AspNetCore.Server.Kestrel.Tls as a package
2017-08-16 14:56:01 -07:00
Nate McMaster
26f1d4baa3
Use PackageLineup
...
PackageLineup is a way to manage PackageReference versions across large projects. It removes the version information from the repository and instead pulls the information from an external "lineup" file.
2017-08-16 14:10:43 -07:00
Cesar Blum Silveira
0fafd19ec9
Initial HTTP/2 support.
...
What works:
- HTTP/2 over TLS1.2 with ALPN
- Request and response flow
- Headers are compressed and decompressed with HPACK
- Request body can be read by streams (if present)
- MVC template app with individual auth works fine
- PRIORITY frames are validated
- RST_STREAM frames are validated and abort streams
- SETTINGS frames are validated and ACKed
- PING frames are validated and ACKed
- GOAWAY frames stop connections
- WINDOW_UPDATE frames are validated
- CONTINUATION frames are sent for large header blocks
What doesn't work yet:
- Flow control in either direction
- It's not possible to encode a single header across more than one frame
- Affects only a very large header (name and value combined ~16KB long)
- Request trailers
- Response trailers
- Limits and timeouts in `KestrelServerLimits` are not enforced on HTTP/2
- HPACK use is very limited on the send side
- Literals are not Huffman-encoded
- Common headers (e.g. "server: Kestrel") are never indexed
- Honoring client settings
- Some error checking is still missing (e.g. validating incoming frame size)
2017-08-16 10:04:44 -07:00
David Fowler
5c775073a4
Initial bedrock refactoring ( #1995 )
...
- Added Protocols.Abstractions
- IConnectionHandler.OnConnection takes an IFeatureCollection instead of
IConnectionInfo
- Removed IConnectionContext and IConnectionInformation replaced with
IConnectionTransportFeature
- Updated FrameConnectionContext and FrameContext to have the relevant
state instead of flowing the ConnectionInformation.
- Updated tests
2017-08-16 00:02:48 -07:00
Justin Kotalik
594f55947f
Keep ResponseCookie options on delete. ( #905 )
2017-08-10 18:01:30 -07:00
Henk Mollema
456957bf57
Use dictionary for deployment parameters ( #1126 )
2017-08-10 10:56:21 -07:00
Pavel Krymets
396f413b38
Rename testing metapackage ( #218 )
2017-08-10 09:38:19 -07:00
Pavel Krymets
653272600f
Add site extension generation code ( #217 )
2017-08-10 08:11:57 -07:00
Christian Weiss
07f96a444e
Always log startup exceptions
2017-08-08 09:55:30 -07:00
John Luo
a49db63f06
Increment M.H.Server.IntegrationTesting version
2017-08-07 15:28:45 -07:00
Pavel Krymets
659fa967a1
Consume corefxlab packages and private build of C# compiler ( #1976 )
2017-08-07 13:58:19 -07:00
pan-wang
93b37e14db
fix websocket connection issue and some memory leak, and add debug print ( #129 )
2017-08-04 14:51:15 -07:00
John Luo
cbad7fad7a
Add API baseline for Microsoft.AspNetCore
2017-08-03 17:39:26 -07:00
Steve Sanderson
5f1450c9ba
Make aspnet-angular compatible with AoT compilation
2017-08-02 10:53:46 +01:00
Steve Sanderson
c83605baff
Add aspnet-angular NPM package containing HttpWithStateTransfer utility
2017-08-02 10:26:46 +01:00
Stephen Lautier
fc12d722b8
fix(webpack): fix middleware to specifically serialize options as non-camecased
2017-08-02 09:24:42 +01:00
Eric Green
372e597f34
Added Timeout to HttpClient to always be longer than the InvocationTimeoutMilliseconds.
...
HttpClient defaults to 100 seconds. If InvocationTimeoutMilliseconds is greater than the default of the HttpClient, the task will fail with a Task was canceled exception.
2017-08-02 09:22:34 +01:00
Nate McMaster
6584a8b5fd
Shorten folder names
...
Remove the Microsoft.AspNetCore.Server prefix from csproj and their folders. This is required to help us avoid max path issues on Windows.
2017-07-28 11:11:55 -07:00
Justin Kotalik
057fc816fa
Refactor to HttpRequest/Response Streams
2017-07-27 15:46:13 -07:00
Justin Kotalik
a8270a4901
Removes quotes from names in ContentDispositionHeaderValue
2017-07-27 12:30:04 -07:00
Nate McMaster
d058fe5a39
Fix StackOverflowException caused when creating the watcher on directories from a network share
2017-07-26 17:23:06 -07:00
Ryan Brandenburg
23948c5544
Update VersionPrefix
2017-07-26 16:37:40 -07:00
Pavel Krymets
fd6617d101
React to pipeline changes ( #1969 )
2017-07-26 15:51:06 -07:00
Ryan Brandenburg
5b85b3f6c7
Update VersionPrefix
2017-07-26 15:35:24 -07:00
John Luo
819ee5faaf
Add M.Dotnet.Watcher.Tools and M.E.Caching.SqlConfig.Tools to lzma
2017-07-19 12:15:17 -07:00
Mike Harder
266736764c
Rename to DiagnosticSourceVersion ( #1143 )
...
- Matches other repos
2017-07-19 09:37:37 -07:00
Justin Kotalik
b41d8656d5
Adds new date string in HttpRuleParser
2017-07-18 13:34:32 -07:00
Justin Kotalik
68ba94218a
IsNullOrWhiteSpace => IsNullOrEmpty
2017-07-18 09:08:49 -07:00
Stephen Halter
09c92d61d0
Merge branch 'rel/2.0.0' into dev
2017-07-17 14:58:16 -07:00
Stephen Halter
f0e572075b
Fix FlushAsync when a ConnectionAdapter is configured ( #1957 )
...
* Also remove async void everywhere
2017-07-17 14:57:26 -07:00
Justin Kotalik
ab0185a0b8
Adds null checks to UriHelper and fixes typo
2017-07-17 12:23:01 -07:00
Nate McMaster
76aa9b26fc
Use async main in dotnet-watch
2017-07-13 11:55:07 -07:00
Chris R
5753784ac4
#391 Add back the DisplayName setting
2017-07-13 11:22:38 -07:00
Justin Kotalik
3202387d3f
Fixes typo
2017-07-13 10:37:33 -07:00
=
bf0e2bca5e
Update ApplicationInsights version
2017-07-12 15:43:39 -07:00
Steve Sanderson
cdb04c74f9
Update aspnet-webpack to 2.0.1, automatically disabling the middleware if we detect the process doesn't have sufficient disk permissions
2017-07-12 23:06:05 +01:00
Pavel Krymets
5ea7030b69
Reload AI configuration file on change ( #76 )
2017-07-12 13:03:19 -07:00
David Fowler
7ebbdad974
Add support for connection scopes if logging is enabled ( #1953 )
...
* Add support for connection scopes if logging is enabled
- Don't create a scope if logging isn't on
- Copied the pattern we use in Hosting
2017-07-12 11:45:08 -07:00
Steve Sanderson
a74941e3c8
Merge branch 'rel/2.0.0' into rel/2.0.0-templates
2017-07-12 15:30:14 +01:00
Steve Sanderson
576e3debf1
Complete the lstat patching for #1101
2017-07-12 15:27:00 +01:00
Mike Harder
5618fa52d8
Update MSBuild to 15.3.0-* ( #320 )
...
- Matches version shipping with Visual Studio 15.3
2017-07-11 17:47:28 -07:00
Steve Sanderson
4903e12373
Publish aspnet-webpack-react as 3.0.0 since it's no longer beta
2017-07-11 23:55:50 +01:00
Steve Sanderson
56c806b34e
Update aspnet-prerendering to 3.0.1, fixing the default "fetch" base URL to match the real application root URL
2017-07-11 23:55:49 +01:00
Cesar Blum Silveira
fd1758fdfc
Make StopAsync multi-thread safe ( #1666 ).
2017-07-11 14:29:50 -07:00
Andrew Stanton-Nurse
748b35109c
de-exeify HostingStartup to fix downgrade errors
2017-07-11 11:57:18 -07:00
Steve Sanderson
8acba88160
Update aspnet-webpack to 2.0.0, now supporting HMR when apps are running in virtual directories
2017-07-11 18:57:52 +01:00
Steve Sanderson
44f86eb8a1
Fix webpack HMR proxying logic for apps running on non-root URLs (e.g., full IIS virtual directories)
2017-07-11 18:56:06 +01:00
David Fowler
e4350945c5
Attach the correlation id to the request scope if logging is on ( #1138 )
...
- Add the correlation id to the request scope as well as setting
it as the parent id of the activity
2017-07-11 10:03:15 -07:00
Steve Sanderson
22ff88ab79
On Windows, patch Node's lstat to work around permissions error. Fixes #1101
2017-07-11 10:43:31 +01:00
John Luo
f125329ed7
Use private instance of MemoryCache and impose size limit
2017-07-10 15:15:16 -07:00
pan-wang
002c8b9bc9
Adding shutdown http message to support the scenario that ctrl signal is not allowed ( #118 )
2017-07-10 14:55:15 -07:00
Chris R
c8bbbe764a
#395 Add baseline and breaking change files
2017-07-10 09:41:31 -07:00
Hao Kung
7403418d2b
Clean up doc comments
2017-07-10 09:21:56 -07:00
Kévin Chalet
0f7c123081
Fix AuthenticationOptions.DefaultScheme's invalid XML summary
2017-07-10 09:19:48 -07:00
Cesar Blum Silveira
eca4bfe6c3
Add response minimum data rate feature.
2017-07-07 22:37:25 -07:00
Nate McMaster
5185ebe45f
Fix typo in type name ( #1948 )
2017-07-07 16:27:20 -07:00
Nate McMaster
ec72c255f6
Make HttpsConnectionAdapter pubternal
2017-07-07 14:23:34 -07:00
Nate McMaster
a3c157cb61
Validate certificate EKU when it is provided
2017-07-07 11:31:06 -07:00
Chris R
2e2dc67978
#390 Add back AutomaticAuthentication for opt-out.
2017-07-07 11:28:57 -07:00
Hao Kung
d894584254
Add DefaultScheme, remove single fallback ( #891 )
2017-07-07 10:47:54 -07:00
Nate McMaster
bd8a2c8a62
Add XML docs for the public HTTPs APIs shipping in 2.0 ( #1942 )
2017-07-07 10:40:39 -07:00
Ryan Brandenburg
7ca5002b4c
Remove NETSTandard.Library.NETFramework
2017-07-07 10:27:25 -07:00
Steve Sanderson
e632d2bb69
In domain-task/fetch, only apply HTTPS cert validation workaround for HTTPS requests (not HTTP)
2017-07-07 12:07:12 +01:00
Pavel Krymets
b484d2ee4f
Remove default AI logger settings ( #69 )
2017-07-06 12:24:38 -07:00
Steve Sanderson
27f59c6971
Make domain-task/fetch disable HTTPS cert validation when making relative requests to own server as workaround for #1089
2017-07-06 14:37:29 +01:00
Steve Sanderson
943fb2f482
In core packages, set <None Remove="node_modules\**\*" /> otherwise builds are super slow
2017-07-06 11:13:24 +01:00
Chris R
13b867a90e
#366 Add flag to disable synchronous IO
2017-07-05 15:51:16 -07:00
Hao Kung
a79aea3bf3
Tweak null guard
2017-07-05 14:39:27 -07:00
Hao Kung
d632c6a1a1
Merge branch 'haok/null' into dev
2017-07-05 14:32:17 -07:00
Chris R
1a1e4c309f
#167 Add cancellation tokens and defualt timeouts for Load/CommitAsync.
2017-07-05 14:22:43 -07:00
Hao Kung
98eb31194c
Guard against null
2017-07-05 13:33:39 -07:00
Nate McMaster
6f4f34a0bf
Remove SessionOptions.SameSideMode ( #176 )
2017-07-05 09:40:55 -07:00
Chris R
85402d4bd6
Add CancellationToken to ISession Load/CommitAsync
2017-07-05 09:05:01 -07:00
Ryan Brandenburg
81544958b8
DiagnosticSource to 4.4.1
2017-07-03 15:02:01 -07:00
Aristarkh Zagorodnikov
00d17dea79
Domain socket handles ( #1922 )
...
* UvPipeHandle.Open(IntPtr) and underlying interop
* LibuvConstants.ENOTSUP
* IEndpointInformation.HandleType along with ListenOptions extra ctor and handle type re-specification
* Exception-based auto-detection of socket type in Listener, accept socket creation support for detected handle types in ListenerContext
* Added systemd Unix socket activation tests
2017-07-03 11:11:23 -07:00
Stephen Halter
e9ffcdb414
Add feature to optionally disallow synchronous IO ( #1919 )
...
* Allow synchronous IO by default
2017-07-03 11:07:17 -07:00
Steve Sanderson
94fc84a9b4
Add simpler prerendering API. Fixes #607
2017-07-03 14:07:28 +01:00
Steve Sanderson
9cce26ebd8
Fix error formatting by rebuilding entrypoint-http.js
2017-07-03 14:01:31 +01:00
Steve Sanderson
513d288a5d
Use GetRandomFileName instead of GetTempFileName. Fixes #1060
2017-07-03 10:15:53 +01:00
Steve Sanderson
429a432dd3
Check for null during node process disposal. Fixes #1061
2017-07-03 10:09:03 +01:00
John Luo
15008b0b7f
Add WaitForShutdown to WebHostExtensions
2017-07-01 23:13:52 -07:00
David Fowler
b0a70aeef7
Add synchronous Start back to IWebHost ( #1125 )
...
* Add synchronous Start back to IWebHost
- Fixed extension methods to have a default(CancellationToken)
- Removed extension methods for Start, StartAsync and StopAsync
2017-07-01 15:00:54 -07:00
Nate McMaster
df41fd8ccc
Replace the ConfigureCookieOptions action property with the CookieBuilder
2017-06-30 15:18:40 -07:00
Cesar Blum Silveira
81c2b57dda
Increase default request min rate to 240 bytes/second ( #1929 ).
2017-06-30 14:58:44 -07:00
Ryan Brandenburg
5f37723e8d
Remove AssetTargetFallback
2017-06-30 14:42:27 -07:00
Ryan Brandenburg
8e7dafad96
Remove AssetTargetFallback
2017-06-30 13:11:13 -07:00
Cesar Blum Silveira
68ba9a9445
Avoid torn reads from _frame.MinReadBodyDataRate in FrameConnection.Tick().
2017-06-30 12:22:31 -07:00
Nate McMaster
6d858dfeb2
Make CookieBuilder.Build(HttpContext) non-virtual
2017-06-30 12:13:31 -07:00
Nate McMaster
dece939aab
Add CookieBuilder property to SessionOptions and obsolete duplicated properties
2017-06-30 10:02:53 -07:00
Nate McMaster
199b0fa212
Require CookieBuilder.Name to be a not null or empty
2017-06-30 09:20:13 -07:00
Cesar Blum Silveira
f2061ed716
Rename request body min rate APIs ( #1901 ).
2017-06-29 17:16:34 -07:00
John Luo
64ed5bb4ff
Use new SelfContained property
2017-06-29 16:50:34 -07:00
Hao Kung
824051cb28
React to auth
2017-06-29 16:29:00 -07:00
Hao Kung
779cfd265a
React to HttpAbstractions
2017-06-29 16:27:46 -07:00
Hao Kung
271faf11bb
Refactor IAuthenticationHandler/Result
2017-06-29 16:25:24 -07:00
Nate McMaster
f9e0439ef1
Add CookieBuilder
2017-06-29 15:55:01 -07:00
David Fowler
9bf94d3667
Remove unused parameter in ctor of HttpContextFactory ( #881 )
...
- We removed the use of the ObjectPoolProvider in 1.x, this change
just removes it from the ctor.
2017-06-29 11:44:46 -07:00
Pavel Krymets
417e6b81ea
Cross-compile hosting startups ( #68 )
2017-06-29 11:15:57 -07:00
Jass Bagga
61505b88a5
Remove use of GetTempFileName ( #313 )
2017-06-28 12:11:17 -07:00
Nate McMaster
f3ed8129f3
Ensure Microsoft.AspNetCore.All is only compatible with netcoreapp2.0 ( #180 )
2017-06-28 10:21:55 -07:00
Chris Ross
163836fe1f
#800 Re-enable API check ( #878 )
2017-06-28 10:16:54 -07:00
Nate McMaster
64c6e11ce4
Change HttpResponseStreamWriter.DefaultBufferSize to 16K and remove it from public API surface
2017-06-27 17:31:54 -07:00
Nate McMaster
9b4be69e9d
Do not enforce timeouts when the debugger is attached
2017-06-27 16:56:27 -07:00
Ajay Bhargav Baaskaran
379d6d8dcd
Added some missed doc comments
2017-06-27 15:02:17 -07:00
John Luo
5155456653
Handle graceful shutdown from ANCM
2017-06-27 13:20:21 -07:00
Chris R
7febdbaa20
#539 Implement request body size limit
2017-06-26 15:18:10 -07:00
Chris R
7b15720a05
# This is a combination of 2 commits.
...
# This is the 1st commit message:
#539 Implement request body size limit
# The commit message #2 will be skipped:
# Check exception messages
2017-06-26 15:17:20 -07:00
Chris R
c13ba3ef0a
#339 Don't send chunked responses for HEAD requests
2017-06-26 12:09:18 -07:00
Steve Sanderson
3da87dd3d3
In aspnet-webpack-react 3.0.0+, remove the workaround for #1066 . Templates that use this version of the package need to not have issue #1066
2017-06-26 15:34:30 +01:00
Steve Sanderson
117c1a6cbd
Implement workaround for #1066
2017-06-26 12:51:03 +01:00
John Luo
0e4db81898
Remove dotnet-archive and Microsoft.Dotnet.Archive
2017-06-23 11:23:55 -07:00
David Fowler
5fa9fc9458
Updated breaking changes file
2017-06-23 09:33:58 -07:00
Kristian Hellang
513f6ac816
Avoid having to return anything in StartupBase.ConfigureServices ( #957 )
...
* Implement IStartup explicitly so we don't have to return a service provider
* Inherit StartupBase and override CreateServiceProvider
2017-06-23 08:48:06 -07:00
Scott Addie
55bd0c05cb
Update SpaServices NuGet package installation requirement
2017-06-23 11:55:00 +01:00
Pranav K
ab8cb5e2c9
Preapre for StackTrace.Sources changes
2017-06-22 11:18:56 -07:00
Pranav K
acb96ec971
Preapre for StackTrace.Sources changes
2017-06-22 11:18:43 -07:00
pan-wang
6b411adbd0
revert the preserve host header change as it failed on Antares ( #114 )
2017-06-21 16:48:38 -07:00
Stephen Halter
ea2f1033d3
Make Transport.Abstractions pubternal ( #1911 )
...
* Remove Sockets transport dependency from primary package
* Use deprecated travis images to keep systemd tests running
https://blog.travis-ci.com/2017-06-21-trusty-updates-2017-Q2-launch
2017-06-21 14:58:57 -07:00
Jass Bagga
c816bce13a
Refactor invalid operation exception handling ( #87 )
...
Addresses part of #80
2017-06-21 12:35:31 -07:00
Pranav K
d14b453c33
Allow publishing rid specific desktop applications
2017-06-21 12:16:01 -07:00
Stephen Halter
e1e7c9b810
Wait until the writer is complete to reset RequestBodyPipe ( #1902 )
2017-06-20 10:56:23 -07:00
Hao Kung
12f89f66a6
Improve PathString <-> string logic
2017-06-20 10:49:17 -07:00
Sławomir Rosiek
4ceed817a3
Removed unused methods
2017-06-20 16:33:34 +01:00
Sławomir Rosiek
6d85e752e1
Throwing HttpInvocationException instead of generic Exception
2017-06-20 16:33:34 +01:00
Steve Sanderson
73054559cc
Bump aspnet-prerendering version to 2.0.6 for publish
2017-06-20 15:11:23 +01:00
Steve Sanderson
d007a3fbba
In aspnet-prerendering, fix type definitions to satisfy TypeScript 2.4.0. Fixes #1034
2017-06-20 15:10:29 +01:00
Steve Sanderson
fcd3cf9dd7
In aspnet-prerendering, simply type imports/exports by changing PrerenderingInterfaces to a regular module (not a .d.ts file)
2017-06-20 15:07:11 +01:00
Cesar Blum Silveira
892de7d4b8
Merge branch 'rel/2.0.0-preview2' into dev
2017-06-19 16:39:00 -07:00
Cesar Blum Silveira
7afd279a6d
Don't pause and resume read timing on upgrade requests ( #1904 ).
2017-06-19 16:37:47 -07:00
Nate McMaster
0dfb8e474a
Remove named constraint from SqlCache tool ( #310 )
2017-06-19 15:10:21 -07:00
David Fowler
e88ad84a72
Create a scoped service provider for the call to Configure ( #1106 )
...
* Create a scoped service provider for the call to Configure
- This allows scoped dependencies to be injected into the Configure method.
It means you can resolve the DbContext or any other scoped service without
the hassle of the CreateScope boiler plate. As a side effect, it also makes
Startup.Configure a bit more testable.
2017-06-19 14:14:20 -07:00
David Fowler
70a3017b12
Add overload that takes an IConfigurationBuilder ( #1107 )
2017-06-19 12:41:43 -07:00
Nate McMaster
0742f56dbd
Fix minor formatting error in help text for user-secrets
2017-06-17 13:45:20 -07:00
Kiran Challa
21be9922c2
Merge branch 'rel/2.0.0-preview2' into dev-gate
2017-06-15 04:01:23 -07:00
Kiran Challa
a7b13f65fd
Merge branch 'rel/2.0.0-preview2' into dev-gate
2017-06-15 03:55:33 -07:00
Kiran Challa
53128bca0e
Revert "Add "--no-restore" parameter to "dotnet publish" ( #1101 )"
...
This reverts commit 007e3b6b51 .
2017-06-14 20:06:11 -07:00
Kiran Challa
0b90376bbf
Revert "Add "--no-restore" parameter to "dotnet run" ( #1104 )"
...
This reverts commit 78877b6ba2 .
2017-06-14 20:06:03 -07:00
Kiran Challa
9f49d34c17
Revert "Workaround: On xplat machines, provided executable permission to published standalone application executable"
...
This reverts commit 51f77ea7f3 .
2017-06-14 19:52:54 -07:00
Kiran Challa
0b844b2ccf
Changed all references of PackageTargetFallback to AssetTargetFallback
2017-06-14 14:33:20 -07:00
Kiran Challa
9519473769
Changed all references of PackageTargetFallback to AssetTargetFallback
2017-06-14 14:31:57 -07:00
Hao Kung
df5c6730f7
Add new default schemes + tests ( #870 )
2017-06-14 12:57:45 -07:00
Nate McMaster
5d1a523682
Make ILoggerFactory an optional service on any DI-injected services
2017-06-13 15:15:19 -07:00
Nate McMaster
902783e202
Remove redundant property in dependencies.props
2017-06-13 11:29:31 -07:00
Nate McMaster
abf05e2856
Docker: add warning when FileSystemXmlRepository saves a key to non-volume mounted folder
2017-06-13 11:04:52 -07:00
Mike Harder
3763aba85c
Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev
2017-06-13 10:40:19 -07:00
Mike Harder
78877b6ba2
Add "--no-restore" parameter to "dotnet run" ( #1104 )
...
- Workaround for "Publish fails on app with project reference to netstandard2.0 class library" (https://github.com/dotnet/cli/issues/6843 )
2017-06-13 10:39:58 -07:00
Nate McMaster
ddd041b0f1
Remove DefaultKeyServices
2017-06-13 00:34:35 -07:00
pan-wang
cee4cf7544
Antares blocks some windows APIs. We have use socket instead of calli… ( #109 )
...
* Antares blocks some windows APIs. We have use socket instead of calling GetExtendedTcpTable to check whether the backend is listening on given port.
* Use socket instead of calling GetExtendedTcpTable to check if the backend process listens on given port since Antares blocks couple APIs
* Antares blocks some windows APIs. We have use socket instead of calling GetExtendedTcpTable
* update format
* format change
2017-06-12 19:41:12 -07:00
Mike Harder
86c31c5dc3
Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev
2017-06-12 16:59:57 -07:00
Mike Harder
007e3b6b51
Add "--no-restore" parameter to "dotnet publish" ( #1101 )
...
- Workaround for "dotnet publish fails on app with project reference to netstandard2.0 class library" (https://github.com/dotnet/cli/issues/6843 )
2017-06-12 16:59:34 -07:00
Hao Kung
b059bcc426
Obsolete AuthenticationManager ( #866 )
2017-06-12 11:41:27 -07:00
Stephen Halter
a97c08843c
Complete IPipeWriter in OutputProducer.Abort() ( #1894 )
...
- This prevents MemoryPoolBlocks from leaking when writes fail
2017-06-12 11:12:01 -07:00
Stephen Halter
d879518a18
Always complete RequestBodyPipe.Reader ( #1893 )
...
* Disable test that leaks blocks in debug builds
* Move some test helpers
2017-06-12 11:11:40 -07:00
Steve Sanderson
a3bcc0d863
Update debugger detection to support Node v8.1+, and stop aborting if debugger messages are unrecognised.
2017-06-11 20:28:14 +01:00
Steve Sanderson
5e7bb0f5c5
Don't log OperationCanceledException every time an HMR client disconnects
2017-06-11 19:57:26 +01:00
Nate McMaster
e7fa69d63c
Minor cleanup: remove unnecessary conditional compilation line
2017-06-08 16:40:09 -07:00
Stephen Halter
31e5dfdcf0
Merge branch 'rel/2.0.0-preview2' into dev
2017-06-08 15:09:55 -07:00
Stephen Halter
f67a105ff4
Update defaults in KestrelServerLimits doc comments ( #1891 )
2017-06-08 15:08:49 -07:00
Cesar Blum Silveira
48638cb1cd
Merge branch 'rel/2.0.0-preview2' into dev
2017-06-08 15:01:34 -07:00
Cesar Blum Silveira
fcc04f8c3d
Add request body minimum data rate feature ( #1874 ).
2017-06-08 14:36:03 -07:00
Pranav K
3f771ef0bc
Remove usage of TaskCache ( #1889 )
...
* Remove usage of TaskCache
2017-06-08 13:47:01 -07:00
Pranav K
0e4405ab7f
Remove usage of TaskCache
2017-06-08 13:46:29 -07:00
Pranav K
a78b194a84
Remove usage of TaskCache
2017-06-08 13:46:05 -07:00
Pranav K
4e044a1e30
Remove usage of TaskCache
2017-06-08 13:45:50 -07:00
Nate McMaster
f12054dfa7
Update Microsoft.AspNetCore.HtmlAbstractions to .NET Standard 2.0
2017-06-08 12:58:50 -07:00
David Fowler
b686298133
Don't throw for OnStarting or OnCompleted calls. ( #864 )
2017-06-08 08:53:03 -10:00
Pranav K
c267d192d6
Remove usage of TaskCache
2017-06-08 11:46:50 -07:00
N. Taylor Mullen
bdf115a5ff
Make SHA256 algorithm creation FIPS compliant.
...
#144
2017-06-08 10:19:33 -07:00
Pranav K
a23f1601fd
Remove usage of TaskCache
2017-06-08 09:06:41 -07:00
Pranav K
3909a5ce88
Remove usage of TaskCache
2017-06-08 09:06:18 -07:00
Chris R
448e6787e2
Fix auth enabled check
2017-06-07 15:43:24 -07:00
Pavel Krymets
9862dc5853
React to logging changes
2017-06-07 14:26:17 -07:00
Stephen Halter
f96c48c08d
Add a request body size limit ( #1877 )
...
- Implement IHttpMaxRequestBodySizeFeature
2017-06-07 11:48:56 -07:00
David Fowler
9dedc98094
Deprecate the IAuthenticationHandler property ( #863 )
...
* Deprecate the IAuthenticationHandler property
2017-06-07 07:04:48 -10:00
Nate McMaster
ccef6b261b
Lift Microsoft.Extensions.WebEncoders to target .NET Standard 2.0
2017-06-07 09:41:23 -07:00
Steve Sanderson
b444831c8d
Remove System.Runtime.Loader dependency to enable net461 support. Use IApplicationLifetime instead of AssemblyLoadContext.Default.Unloading.
2017-06-07 14:58:44 +01:00
Steve Sanderson
2aaceaa9f8
Move core packages to netstandard2.0
2017-06-07 14:58:33 +01:00
John Luo
35ec06975d
Use file globbing to resolve manifests
2017-06-06 17:04:23 -07:00
Stephen Halter
6717f1674f
Merge branch 'rel/2.0.0-preview2' into dev
2017-06-06 16:03:42 -07:00
Stephen Halter
89057003b3
Check IHttpMaxRequestBodySizeFeature.IsReadOnly ( #379 )
2017-06-06 16:02:36 -07:00
Stephen Halter
2176af7edd
Add IHttpMaxRequestBodySizeFeature.IsReadOnly ( #858 )
2017-06-06 15:27:13 -07:00
Kiran Challa
d9531031a8
Updated to netstandard2.0
2017-06-06 12:03:01 -07:00
Jass Bagga
ad8338e1e8
Refactor RangeHelper ( #200 )
...
Addresses #196
2017-06-06 11:22:31 -07:00
Chris R
c261b37fda
#371 Conditionally register auth scheme base on ANCM variable
2017-06-05 14:54:15 -07:00
Hao Kung
0390779084
Revert " #1875 Add Configuration support and tests."
...
This reverts commit c6e228d176 .
2017-06-05 13:48:38 -07:00
Hao Kung
c920c45953
Remove ConfigureDefaultOptions
2017-06-05 13:40:32 -07:00
Chris R
c3ffde286b
Clear MaxRequestBodySize
2017-06-05 11:23:08 -07:00
Chris R
f1901516c6
#519 Expose a connection limit option
2017-06-05 10:23:22 -07:00
Hao Kung
300d69e644
Remove ConfigureDefaultOptions
2017-06-05 09:57:57 -07:00
Mike Harder
102b1ca625
Remove Microsoft.EntityFrameworkCore.*.Design packages ( #140 )
...
- 778a843444
- 32434d2d86
- 73e10420f5
2017-06-03 10:20:57 -07:00
Ajay Bhargav Baaskaran
5d22a42a2a
Merge branch 'rel/2.0.0-preview2' into dev
2017-06-02 15:22:48 -07:00
Ajay Bhargav Baaskaran
ac3cbb5f8d
Generated api check baselines for AzureStorage
2017-06-02 15:16:16 -07:00
Nate McMaster
34ea52068a
Add --msbuildprojectextensionspath option to dotnet-watch
...
In the event someone wants to move the obj/ folder, MSBuild will not be able to locate dotnet-watch's generated targets. dotnet-watch cannot automatically find the obj folder (#244 ), so this command line switch allows users to point dotnet-watch to the right location.
2017-06-02 15:12:33 -07:00
John Luo
5870fce035
Add configure delegate for CookieOptions
...
- allows configuration of CookieOptions such as SameSite without explicit duplication of the option on AntiforgeryOptions
2017-06-02 14:35:22 -07:00
Stephen Halter
9698f539f0
Add IHttpMaxRequestBodySizeFeature ( #852 )
2017-06-02 12:46:36 -07:00
Chris R
3932c68d18
Move KestrelServerOptionsSetup to Kestrel
2017-06-02 12:33:40 -07:00
Chris R
c6e228d176
#1875 Add Configuration support and tests.
2017-06-02 12:30:12 -07:00
Chris R
a2962d54f1
Merge branch 'rel/2.0.0-preview2' into dev
2017-06-02 12:23:47 -07:00
Chris R
5e2bb55be0
Change Certificates.Configuration to a Sources package
2017-06-02 12:21:43 -07:00
Nate McMaster
fe83e69b1a
Add a startup filter which initializes the key ring before the server starts
2017-06-02 11:31:16 -07:00
Nate McMaster
285b973a5c
Use IHostingEnvironment to determine application identifier
...
Reverses changes made in #230
2017-06-02 11:27:25 -07:00
John Luo
2625e2a768
Consolidate runtime store dependencies into one package
2017-06-02 11:14:56 -07:00
Pavel Krymets
6fcf83fe22
React to logging in DI change
2017-06-02 10:47:54 -07:00
Pavel Krymets
c381d8715a
React to AddConfiguration overload change
2017-06-02 09:37:18 -07:00
Pavel Krymets
0f0c88b8cd
React to logging in DI changes ( #1089 )
2017-06-02 08:33:37 -07:00
Pavel Krymets
894a3d9d7a
React to logging DI changes ( #56 )
2017-06-02 08:33:20 -07:00
Ajay Bhargav Baaskaran
22ebf68f74
Enable Api check and added breakingchanges json
2017-06-01 17:39:52 -07:00
Nate McMaster
5bcc76d32c
Remove dependency on DataProtection
...
Reverse changes made in #1064
2017-06-01 16:26:54 -07:00
Hao Kung
a55b818a07
Bind AuthenticationOptions to config + PathString type converter ( #851 )
2017-06-01 15:43:40 -07:00
Arthur Vickers
4b5d6903ea
React to EF change
2017-06-01 09:04:55 -07:00
John Luo
b899775185
Add configurable SameSite cookie option
2017-05-31 14:52:19 -07:00
Chris R
44ccbee9ba
Moving CertificateLoader from MetaPackages to Hosting.
2017-05-30 16:26:33 -07:00
Chris R
b04be188c0
#81 Move CertificateLoader to Hosting
2017-05-30 16:12:15 -07:00
Andrew Peters
2258eeae39
Database Error Page: Remove ILogger-based interception.
...
- Made EF calls async
- Removed a slow, repeated DB existence check.
2017-05-30 15:50:19 -07:00
John Luo
e3366c7640
Cross-compile netcoreapp2.0 and net461
2017-05-30 14:26:53 -07:00
Andrew Peters
1b6993fb91
Database Error Page: Prep for removal of ILogger-based interception.
...
- Removed EF ApiCheck tests; not required for middleware.
- Removed JB annotations and Check usage; align with other Diagnostics Pages projects.
- Fixed code redundancies.
2017-05-30 12:55:50 -07:00
Cesar Blum Silveira
402b337178
Temporary workaround for GenerateResource task error on VS.
2017-05-30 12:47:36 -07:00
Chris R
1dc8a67aca
Correct content TFM path
2017-05-30 11:32:13 -07:00
Chris R
1b97a7fff6
#58 Retarget Xdt and SiteExtension to net461
2017-05-30 10:57:13 -07:00
Chris R
0177ab8424
Change SelfHostDepoyer to use net461
2017-05-30 09:56:23 -07:00
Pranav K
9b131ea7d3
Remove unused usings
2017-05-27 18:58:17 -07:00
Hao Kung
4b18cf52ae
Add ConfigureAspNetCoreDefaults
2017-05-26 16:20:32 -07:00
Nate McMaster
c343628926
Implement max connection limits
...
- Added new options to allow configuring the maximum number of concurrent connections and upgraded connections.
- `KestrelServerLimits.MaxConcurrentConnections` defaults unlimited.
- `KestrelServerLimits.MaxConcurrentUpgradedConnections` defaults to unlimited.
- Calls to IHttpUpgradeFeature.UpgradeAsync() will throw when the MaxConcurrentUpgradedConnections limit has been reached.
- Kestrel will close new connections without response when MaxConcurrentConnections is reached.
2017-05-26 12:27:48 -07:00
John Luo
1619166911
Update manifest names
2017-05-26 11:43:36 -07:00
John Luo
3b488c470a
Make IHostedServiceAsync
2017-05-26 10:52:08 -07:00
Doug Bunting
5b9e129abb
React to breaking change latest API Check detects
...
- see PR aspnet/BuildTools#259 and issue aspnet/BuildTools#146
2017-05-26 09:51:56 -07:00
Nate McMaster
75ba58bac2
Re-add some code that was removed during TFM churn
2017-05-26 09:51:38 -07:00
Hao Kung
d387e6b560
Fix package reference
2017-05-25 19:54:00 -07:00
Hao Kung
273b25fb3a
React to forbid changes
2017-05-25 18:37:27 -07:00
Hao Kung
b1f92fb6bc
Forbid + obsolete context.Authentication
2017-05-25 18:26:36 -07:00
Jass Bagga
7bd98f5cf9
Update TFM to netstandard2.0 ( #53 )
2017-05-25 17:12:10 -07:00
Javier Calvarro Nelson
b9a9ec9305
Add support for a default SSL certificate in development
...
When the ssl certificate specified is 'localhost' and
no certificate has been explicitly specified in the certificates
section, fallback to a certificate with 'CN=localhost' (ASP.NET Core SSL
developer certificate) in the current user store and if not found,
an ssl certificate with 'CN=localhost' on the current machine
(IIS Express developer certificate)
2017-05-24 16:24:32 -07:00
Javier Calvarro Nelson
7ac72dd7d8
Add task for generating ssl certificates with MSBuild
2017-05-24 15:55:43 -07:00
Hao Kung
87faa10e64
React to forbid changes
2017-05-24 12:21:08 -07:00
John Luo
d25dbd572c
Target NETStandard2.0
2017-05-24 11:10:13 -07:00
Nate McMaster
b706a75e03
Target .NET Standard 2.0
...
This retargets all data protection libraries to ns2.0. This means .NET
Framework applications will need to upgrade to .NET Framework 4.6.1.
This upgrade makes available API to .NET Core that was previously only
available on .NET Framework, such as encrypting keys at rest with
certificates.
New API for .NET Core users:
- IDataProtectionBuilder.ProtectKeysWithCertificate(string thumbprint)
- CertificateXmlEncryptor
- ICertificateResolver
- DataProtectionProvider
- .Create(string applicationName, X509Certificate2 certificate)
- .Create(DirectoryInfo keyDirectory, X509Certificate2 certificate)
- .Create(DirectoryInfo keyDirectory, Action<IDataProtectionBuilder>
setupAction, X509Certificate2 certificate
Other minor changes in this commit:
- Fixed samples that were using obsolete logging API
- Remove calls to api-sets, instead using kernel32. .NET Core 2.0 no
longer requires using api-sets as Nano Server now forwards kernel32
calls
- Made minor improvements to the TypeForwardingActivator
- Remove dead code an unused api baselines
- Enable more tests on macOS/Linux that previously only ran on Windows
2017-05-24 09:47:10 -07:00
Thomas Hermann
c592282646
Fix Node debugging by catching warning
2017-05-24 17:32:01 +01:00
Ryan Nowak
d39305aa91
Improve formatting
2017-05-24 08:36:24 -07:00
Ryan Nowak
1165a1de33
Updates to generated resource files
2017-05-24 08:32:15 -07:00
Joonas Westlin
9a6cb89b8d
Adjusted example error message to reflect the situation that causes the error.
2017-05-24 08:23:20 -07:00
Joonas Westlin
a18f59ab88
Changed expected exception message to the one defined in Resources.resx.
...
Removed the Debug.Assert as that caused the test runner to crash as in
this case the preceding part is not a literal.
Fixes the test runner crash.
2017-05-24 08:23:20 -07:00
Arthur Vickers
8e618cb6f4
React to EF namespace change.
2017-05-23 17:39:21 -07:00
pan-wang
bce531f61a
add features: flowing authentication info, hosting environment variable support; fix client disconnect and app_offline issues ( #102 )
...
resubmit
2017-05-23 17:25:45 -07:00
BrennanConroy
03bdb40f8a
Add UseShutdownTimeout Extension ( #1086 )
2017-05-23 16:20:41 -07:00
Chris R
1bc5ade59f
React to StringSegment changes
2017-05-23 15:31:55 -07:00
Pranav K
ec2faf5594
Target netstandard2.0
2017-05-23 15:27:47 -07:00
Chris R
bad3f62c8d
React to StringSegment change.
2017-05-23 14:52:22 -07:00
Ryan Brandenburg
efb097ce60
Target .NET Standard 2.0 and add net461 testing
2017-05-23 14:38:36 -07:00
Chris R
421ac4bc97
React to StringSegment changes
2017-05-23 11:41:08 -07:00
Chris R
9c5870b1b4
React to StringSegment change
2017-05-23 10:59:32 -07:00
Chris R
419ec53d07
React to StringSegment changes
2017-05-23 10:38:21 -07:00
Chris R
7ac6842d18
#1075 Suppress exceptions from failing to load HostingStartup assemblies
2017-05-23 10:36:57 -07:00
Cesar Blum Silveira
4ab7a19dc2
Target netstandard2.0.
2017-05-23 10:00:29 -07:00
Jass Bagga
c2262b7234
Update TFM to netstandard2.0 ( #112 )
2017-05-22 16:42:46 -07:00
John Luo
68d1d4ce12
Remove TestProjectHelpers from Server.IntegrationTesting
2017-05-22 15:55:24 -07:00
John Luo
a05ad22173
Target NETStandard2.0
2017-05-22 15:29:37 -07:00
Nate McMaster
8f3d04870f
Target .NET Standard 2.0
2017-05-22 15:19:02 -07:00
Chris R
2ce2d8b6c5
#758 Convert the header parsers to use StringSegment
2017-05-22 15:14:02 -07:00
John Luo
d6a653145d
Target NETStandard 2.0
2017-05-22 15:05:12 -07:00
Chris R
df36d02311
Retarget to netstandard2.0
2017-05-22 14:57:28 -07:00
John Luo
e8123db21e
Add SameSite attribute to SetCookie header
2017-05-22 14:42:05 -07:00
Cesar Blum Silveira
197eb43d8a
Read request body concurrent to app execution.
2017-05-22 12:23:02 -07:00
Ryan Brandenburg
3645ae6cf2
Generate Documentation files
2017-05-22 10:54:25 +01:00
Nate McMaster
390582dcf1
Target .NET Standard 2.0 ( #1849 )
2017-05-20 10:37:35 -07:00
BrennanConroy
c7bac3133f
Chain hosting timeout to StopAsync cancellation token ( #1078 )
2017-05-19 16:32:45 -07:00
John Luo
62cd07d0a6
Target NETStandard2.0 and add WindowsServices back
2017-05-19 14:17:02 -07:00
Kiran Challa
e3114dc6a4
Temporarily change tfm to netstandard1.3
...
Ideally we want to target netstandard2.0 but this conversion is blocked on the issue: https://github.com/dotnet/sdk/issues/1219
2017-05-19 14:00:08 -07:00
Chris R
f258be61fd
React to parser StringSegment changes
2017-05-18 21:57:13 -07:00
Nate McMaster
74239f08c0
Update TFM to netstandard2.0
2017-05-18 16:09:19 -07:00
Chris R
8580226a4b
#51 Add AzureSiteExtension tag and package type
2017-05-18 15:28:56 -07:00
Pavel Krymets
34ab089e7b
React to scheduler changes ( #1846 )
2017-05-18 14:49:48 -07:00
John Luo
6e87b0f5eb
Target netstandard2.0 TFM
2017-05-18 14:38:26 -07:00
John Luo
9313a02aa8
Remove duplication of parsing helper
2017-05-18 11:49:03 -07:00
Steve Sanderson
33cc640942
Remove obsolete 1.x APIs
2017-05-18 14:17:29 +01:00
Steve Sanderson
baae62132b
Remove projects and packages obsoleted in v2
2017-05-18 13:52:58 +01:00
Steve Sanderson
244deca019
Update libraries and samples to .NET Core 2.0
2017-05-18 13:45:13 +01:00
Steve Sanderson
85e59efa21
Rename Angular2Spa to AngularSpa, plus rephrase "Angular 2" as "Angular" in many places
2017-05-18 13:40:58 +01:00
Hao Kung
8ed21d56c8
IIS => Auth 2.0
2017-05-17 13:37:30 -07:00
Hao Kung
bff13c7f43
HttpSysServer => Auth 2.0
2017-05-17 13:35:09 -07:00
Steve Sanderson
ef9dbfe44b
Update aspnet-webpack-react to v2.0.0, now supporting Webpack 2+ and React Hot Loader 3+ only
2017-05-17 21:10:29 +01:00
John Luo
07470d41b1
Ignore empty header values #722
2017-05-17 12:45:56 -07:00
Nate McMaster
7f0319f5dd
Throw InvalidOperationException from IHttpUpgradeFeature.UpgradeAsync when request is not upgradable
2017-05-17 11:38:42 -07:00
Pavel Krymets
d22f689fd2
Add support to use System.Memory as a package instead of internilized source ( #1821 )
2017-05-16 16:54:03 -07:00
user1336
dfd938e4f7
Fixed � in summary ( #838 )
2017-05-16 12:42:12 -07:00
Chris R
3f8bf3a1b1
#39 Remove unneeded dependencies
2017-05-16 11:46:43 -07:00
David Fowler
cf16d601d6
Remove synchronous Write APIs ( #1838 )
2017-05-15 19:04:04 -07:00
Arthur Vickers
44610a44ac
Update database error page to react to EF logging changes.
2017-05-15 16:19:15 -07:00
Stephen Halter
9ab09dbe48
Change Exception to UvException where possible ( #1833 )
2017-05-15 11:03:04 -07:00
Stephen Halter
41f1922502
Simplify LibuvConnection.OnRead() ( #1828 )
...
* Simplify LibuvConnection.OnRead()
- Fix a null reference that sometimes occurs given an EOF status
2017-05-15 11:02:16 -07:00
David Fowler
1a706113d9
Remove rogue ConfigureAwait ( #1830 )
...
- We don't do it anywhere else, I assume this is left over
from older legacy
2017-05-12 18:26:52 -07:00
Cesar Blum Silveira
cb1d0f3956
Prevent infinite loop in PipelineExtensions.PeekAsyncAwaited() ( #1827 ).
2017-05-12 16:04:38 -07:00
John Luo
906af6de30
Update API check exceptions
2017-05-12 11:57:41 -07:00
Cesar Blum Silveira
37f15bdd85
Create Frame in FrameConnection.
2017-05-10 16:48:37 -07:00
David Fowler
b9518e3684
Invert the dependency between connection adapters and Frame ( #1822 )
...
* Invert the dependency between connection adapters and Frame
- Removed PrepareRequest from IAdaptedConnection and instead added
a feature collection to the ConnectionAdapterContext. This allows features to be set
once by the adapter instead of per request. It's the Frame's job to copy features
from the connection level feature collection into the per request feature collection.
- Set the scheme to "https" based on the presence of ITlsConnectionFeature.
- Always set ITlsConnection feature if the HttpsAdaptedConnection doesn't throw during
the handshake
2017-05-10 15:29:43 -07:00
Hisham Bin Ateya
cf23aedb55
Use EnvironmentName instead of magic string ( #1065 )
2017-05-10 15:20:40 -07:00
cdavid
043f8fda61
Fix typo (delegate) in documentation ( #830 )
2017-05-10 15:02:53 -07:00
Kristian Hellang
f5107596a5
Add Id to ConnectionInfo ( #828 )
2017-05-10 14:54:05 -07:00
Pavel Krymets
412e4de2a5
Remove unnecessary package references ( #835 )
2017-05-10 12:10:19 -07:00
Pavel Krymets
67322fe8ab
Remove unnecessary package references ( #177 )
2017-05-10 11:48:33 -07:00
Pavel Krymets
7a7dc71164
Remove unnecessary package references ( #79 )
2017-05-10 11:45:31 -07:00
Pavel Krymets
f8779ee377
Remove unnecessary package references ( #1068 )
2017-05-10 11:30:40 -07:00
Pavel Krymets
eedcca1be9
Remove unnecessary package references ( #378 )
2017-05-10 11:29:57 -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
BrennanConroy
9a931554d5
Replace RuntimeEnvironment ( #1066 )
2017-05-09 14:15:36 -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
Kristian Hellang
d1d9bceff5
#833 Change non-standard header name 'ContentMD5' to 'Content-MD5'
2017-05-08 13:37:00 -07:00
Pavel Krymets
d268571db6
Disable lightup logger if user adds AI logger ( #46 )
2017-05-08 10:06:35 -07:00
John Luo
8b411493e9
Migration
2017-05-05 19:03:25 -07:00
John Luo
3b644e8100
Migration
2017-05-05 18:44:57 -07:00
John Luo
1f3b20e177
Migration
2017-05-05 17:54:49 -07:00
John Luo
9b80f2a635
Migration
2017-05-05 17:12:36 -07:00
Chris Ross (ASP.NET)
13ea876ca1
Register IApplicationDiscriminator service
2017-05-05 17:07:22 -07:00
Chris R
129edaec7c
Remove IHostingEnvironment dependency ( #230 )
2017-05-05 17:03:33 -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
John Luo
3f239f2d92
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-05 15:28:05 -07:00
John Luo
9168442704
Migration
2017-05-05 14:59:10 -07:00
Chris Ross (ASP.NET)
31001de66a
Migrate to netcoreapp2.0
2017-05-05 14:54:57 -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)
539a13717e
Migrate to netcoreapp2.0
2017-05-05 11:37:10 -07:00
Pranav K
6986ab3a0f
Change TFM to netcoreapp2.0
2017-05-05 10:33:07 -07:00
John Luo
1be9dc10ab
netcoreapp2.0 ( #121 )
2017-05-05 10:11:29 -07:00
Pranav K
e38dc4be38
Change TFM to netcoreapp2.0
2017-05-05 09:58:30 -07:00
Pranav K
ce021a888e
Change TFM to netcoreapp2.0
2017-05-05 09:49:42 -07:00
John Luo
9cd4bca6f5
netcoreapp2.0 ( #162 )
2017-05-05 09:44:36 -07:00
Pranav K
30306fc4f4
Change TFM to netcoreapp2.0
2017-05-04 22:15:24 -07:00
Andrew Stanton-Nurse
319f95db5e
netcoreapp20 ( #173 )
2017-05-04 19:26:46 -07:00
John Luo
905114e960
Migration
2017-05-04 16:32:12 -07:00
Pavel Krymets
6965881ae1
netcoreapp2.0 ( #47 )
2017-05-04 15:06:26 -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
John Luo
bed3bf2b4e
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-04 11:17:24 -07:00
John Luo
2fb5649b04
Revert "Revert "Migration""
...
This reverts commit 102daa6832 .
2017-05-04 11:16:59 -07:00
Steve Sanderson
5a5b309cdf
Bump aspnet-prerendering to 2.0.5 for release
2017-05-04 18:20:38 +01:00
Steve Sanderson
d41f47f5bc
Make statusCode optional on RenderToStringResult. Fixes #917 and #918
2017-05-04 18:20:25 +01:00
Steve Sanderson
decb13b33b
Make versions consistent across all .NET projects
2017-05-04 14:07:00 +01:00
Steve Sanderson
6300f6cdcd
Have CI build 1.1.1 RTM versions of NodeServices/SpaServices for release
2017-05-04 13:37:56 +01:00
Steve Sanderson
3dca3c37ff
Bump aspnet-webpack to 1.0.29 for publish
2017-05-04 13:33:25 +01:00
Steve Sanderson
1862e388e1
Bump aspnet-prerendering to 2.0.4 for publish
2017-05-04 13:21:35 +01:00
Matt Perry
cdbbbcc473
Fix build break
2017-05-04 13:07:18 +01:00
Matt Perry
02b31d05a2
Stick closer to established style guides. Up buffer size to match websocket buffer size from original proxy code.
2017-05-04 13:07:18 +01:00
Matt Perry
54884459bd
Allow proxy middleware to abort long running connections.
2017-05-04 13:07:18 +01: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
John Luo
bd805ef50d
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-03 18:12:26 -07:00
John Luo
102daa6832
Revert "Migration"
...
This reverts commit 91bef13d31 .
2017-05-03 18:11:59 -07:00
John Luo
9bc9ed9812
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-03 17:12:46 -07:00
John Luo
91bef13d31
Migration
2017-05-03 17:03:19 -07:00
Cesar Blum Silveira
f245512f6e
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-03 15:58:20 -07:00
Cesar Blum Silveira
012d9990ef
Show fwlink on HTTPS certificate errors ( #83 ).
2017-05-03 15:55:19 -07:00
John Luo
c812e9ae6f
Doc comments: Add period at the end of the sentence.
2017-05-03 15:13:00 -07:00
damianedwards
4d5e1076c9
Remove the DeveloperExceptionPage middleware from WebHost.CreateDefaultBuilder:
...
- The templates still have it explicitly and it's best to have middleware added by the app directly
2017-05-03 14:37:32 -07:00
John Luo
f56cab4e80
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-03 12:49:24 -07:00
John Luo
9b32921a77
Missed rename updates
2017-05-03 12:49:02 -07:00
Nate McMaster
c0f86d5687
Use ItemDefinitionGroup to simplify the list of packages.
...
See https://docs.microsoft.com/en-us/visualstudio/msbuild/item-definitions
2017-05-03 12:21:35 -07:00
Nate McMaster
655f70717e
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-03 12:20:43 -07:00
Nate McMaster
ebdc68ac10
Exclude SQLitePCl.bundle_green targets when reference included via the Microsoft.AspNetCore.All metapackage
2017-05-03 12:18:50 -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
John Luo
781fa1944e
Fix ConfigureLogging doc comments
2017-05-03 10:37:45 -07:00
Chris Ross (ASP.NET)
d74040786c
#1053 Prevent IISExpressDeployer.Dispose nullref if the process failed to start
2017-05-03 09:40:07 -07:00
BrennanConroy
1018f41f15
Missed some obsolete logging calls
2017-05-02 15:23:21 -07:00
John Luo
fe455f33ab
fix build: Depend on the Hosting package instead of Hosting.Abstractions
2017-05-02 13:47:09 -07:00
BrennanConroy
95eb1cdae7
Force 2.0.0 dependencies for ApplicationInsights ( #36 )
2017-05-02 13:36:50 -07:00
John Luo
3c358e9028
Replace ConfigureLogging(Action<ILoggerFactory>) with ConfigureLogging(Action<LoggerFactory>) extension
2017-05-02 13:01:07 -07:00
John Luo
87c71197ae
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-01 21:42:20 -07:00
Pranav K
b3b986bfa9
Use the bundled NETStandard.Library package in netstandard targeting libraries
2017-05-01 21:09:36 -07:00
Cesar Blum Silveira
2637108c6e
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-01 18:06:01 -07:00
Cesar Blum Silveira
605aeddc22
Support more certificate loading scenarios ( #69 ).
2017-05-01 18:05:11 -07:00
Nate McMaster
53caf55116
Remove unnecessary null check.
...
Resolves #210
2017-05-01 16:25:44 -07:00
Pavel Krymets
a5a9b6adab
Use RuntimeFrameworkVersion instead for directory name ( #82 )
2017-05-01 15:18:44 -07:00
David Fowler
35b5d92652
Fix EBUSY errors on uv_loop_close ( #1798 )
...
* Fix race where ListenerPrimary is disposed before secondary listeners spin up
- Since we only add listeners to dispatch pipes after receiving the "ack" message
it's possible to have pipes that were created but not acked yet. We might miss
disposal of those pipes if they were never added to the list of _dispatchPipes.
#1761
2017-05-01 14:55:32 -07:00
Chris Ross (ASP.NET)
6155cc2c52
#32 Set the SiteExtension package metadata
2017-05-01 14:09:43 -07:00
Andrew Stanton-Nurse
659c008ea8
fix LZMA archive directory structure ( #88 )
2017-05-01 13:11:15 -07:00
Pavel Krymets
08ec9a7e49
Use RuntimeFrameworkVersion instead for directory name ( #82 )
2017-05-01 12:24:07 -07:00
BrennanConroy
3936bf64f6
Remove configuration from LoggerFactory constructor
2017-05-01 10:18:16 -07:00
Nate McMaster
4dc7946cd8
Implement new request trace identifier format
...
The format:
The trace identifier begins with connection ID and ends with a number that increments with each request per connection.
Example:
Connection ID = xyz
Request 1 = "xyz:00000001"
Request 2 = "xyz:00000002"
...
Request 15 = "xyz:0000000F"
Request 16 = "xyz:00000010"
2017-05-01 09:50:47 -07:00
David Fowler
9a5d6c8879
More shutdown tweaks ( #1760 )
...
* More shutdown tweaks
- Added assert if loop has ended before starting the shutdown
sequence.
2017-04-29 01:15:10 -07:00
Stephen Halter
7122b6c4aa
Fix flaky heartbeat test ( #1794 )
2017-04-29 00:42:27 -07:00
David Fowler
749e282102
Prepare for OnReader/WriterCallbacks changes ( #1791 )
...
- This change does a few things:
1. It adds the events we will replace with
pipe events to IConnectionContext and IConnectionInformation to get out of
band notifications about pipe completions.
2. It also implements those callbacks
and exposing slight changes we'll need to make once we have them. The idea is
that we can delete/replace these methods once we have the new pipe API and things
will keep working.
2017-04-29 00:41:48 -07:00
Ryan Nowak
232b73a151
Fix aspnet/Mvc#6218
...
This fixes the case described in the comments in TemplateBinder.
This case is much more common for pages which is why we're only seeing it
now. We've had this issue for all of 1.0.0 in both conventional and
attribute routing.
2017-04-28 17:00:35 -07:00
John Luo
edb55b87cc
Merge branch 'johluo/add-packages' into rel/2.0.0-preview1
2017-04-28 14:54:55 -07:00
John Luo
18acd972df
Add more packages
2017-04-28 14:54:32 -07:00
Nate McMaster
88f43ffc1a
Fix race conditions between CTRL+C and RunAsync in dotnet-watch
...
Increase timeouts in testing dotnet-run and improve verbosity of test logging
2017-04-28 10:34:18 -07:00
Pavel Krymets
dfd1da68ec
Application insights logger lightup ( #31 )
2017-04-28 09:17:39 -07:00
David Fowler
cfad8051d5
Merge branch 'rel/2.0.0-preview1' into dev
2017-04-27 21:00:46 -07:00
David Fowler
0e372edb2c
Removed UseTransportThread ( #1781 )
2017-04-27 20:59:50 -07:00
John Luo
0a04ef78b2
Build one zip per configuration
2017-04-27 19:29:04 -07:00
Chris R
8f65367947
Set actual additional deps path.
2017-04-27 18:07:02 -07:00
David Fowler
5b62024fc8
* Properly handle FINs and resets in the SocketConnection ( #1782 )
...
- FIN from the client shouldn't throw
- Forced close from the server should throw
- Properly wrap connection reset exceptions and other exceptions
in IO exceptions
- This gives kestrel control over when the output closes
- Fixed one test that assumed libuv
- Dispose the connection to yield the reader
Fixes #1774
2017-04-27 17:55:35 -07:00
Stephen Halter
79ea2bb9b3
Quick fix for SslStream ODEs in HttpsAdaptedConnection.PrepareRequest ( #1786 )
2017-04-27 16:56:07 -07:00
BrennanConroy
04dbf42264
React to Logging API changes
2017-04-27 16:22:25 -07:00
BrennanConroy
8102d6a038
Add configuration to logging in WebHost
2017-04-27 16:08:04 -07:00
Andrew Stanton-Nurse
70716bdff5
use actual set of packages ( #78 )
2017-04-27 16:05:52 -07:00
Andrew Stanton-Nurse
ac508e9ef3
just package the archive separately
2017-04-27 15:30:21 -07:00
Andrew Stanton-Nurse
e225d23771
hack to unblock the build, also a good fix
2017-04-27 15:19:44 -07:00
Mike Harder
3a248e22c8
Upgrade System.Data.SqlClient to 4.4.0-* ( #287 )
...
- Addresses "SqlClient fails with netcoreapp2.0 on Win7/Server2008" (https://github.com/dotnet/corefx/issues/18406 )
- Revert if and when $(CoreFxVersion) is upgraded to 4.4.0-*
2017-04-27 13:37:20 -07:00
Kiran Challa
a67bbab6b3
Changing the RID back from win-x64 to win7-x64 to workaround SQL issue
2017-04-27 12:30:45 -07:00
Nate McMaster
795b4d36e7
AddUserSecrets is optional
2017-04-27 12:22:28 -07:00
Kiran Challa
ccad1b62b4
Updated runtime identifier names
2017-04-27 10:55:20 -07:00
Andrew Stanton-Nurse
4ccb09c444
Package Fallback Folder archive generation ( #70 )
2017-04-27 09:04:52 -07:00
David Fowler
0755495ce5
Remove Logging dependency from the http parser ( #1780 )
...
* Remove Logging dependency from the http parser
2017-04-27 08:46:08 -07:00
Pavel Krymets
d4f39bf56b
Validate scopes in Development environment in CreateDefaultBuilder ( #61 )
2017-04-27 08:43:40 -07:00
Pavel Krymets
ba2bca4a96
Run IHostingStartup's before materializing IConfiguration ( #1052 )
2017-04-27 08:14:09 -07:00
Nate McMaster
c2f15fcac3
Move user-facing strings into resource files
2017-04-26 17:22:55 -07:00
Cesar Blum Silveira
21de306963
Bind Kestrel options to config by default ( #30 ).
2017-04-26 16:47:51 -07:00
John Luo
3ae799c9c8
Zip store and deps together
2017-04-26 16:14:46 -07:00
Chris R
285d62b312
Move IHostedService to new Microsoft.Extensions.Hosting.Abstractions package.
2017-04-26 14:06:11 -07:00
John Luo
735337f586
Add functional tests
2017-04-26 13:54:59 -07:00
John Luo
0d66125fda
WebHost static API updates
...
- Specify ApplicationName when wrapping RequestDelegate or RouteBuilder
- Add debug logger by default
2017-04-26 13:51:08 -07:00
Nate McMaster
9464003bda
Add wait in ListenerPrimaryTests to avoid race condition with List.Add
2017-04-26 11:03:28 -07:00
John Luo
e1a29f1b61
Trim by all manifests
2017-04-25 18:52:17 -07:00
Andrew Stanton-Nurse
6527001b3f
remove test logging ( #1040 )
2017-04-25 15:18:58 -07:00
Nate McMaster
4dad47eeab
Ignore assembly version when activating DataProtection types from string name ( #223 )
2017-04-25 14:29:26 -07:00
Jass Bagga
07665c99e8
Add JavaScriptSnippetTagHelperComponent ( #27 )
...
Addresses #25
2017-04-25 12:46:16 -07:00
John Luo
98b1945d65
Set TargetManifestFiles in PropertyGroup
2017-04-25 11:25:09 -07:00
John Luo
a64940a1f7
Remove PreferHostingUrls from options
2017-04-25 10:56:08 -07:00
Pavel Krymets
6d42b2fe86
Expose WebHostBuilderContext in UseDefaultServiceProvider ( #1043 )
2017-04-25 10:08:44 -07:00
Smit Patel
edd7386aa8
Update API Check related files
...
React to aspnet/BuildTools#238
2017-04-25 08:19:12 -07:00
Smit Patel
0aebdb4110
Update API Check related files
...
React to aspnet/BuildTools#238
2017-04-25 08:19:04 -07:00
Smit Patel
73e44417c5
Update API Check related files
...
React to aspnet/BuildTools#238
2017-04-25 08:18:41 -07:00
Smit Patel
a7221ca766
Update API Check related files
...
React to aspnet/BuildTools#238
2017-04-25 08:18:37 -07:00
Smit Patel
8c2409404d
Update API Check related files
...
React to aspnet/BuildTools#238
2017-04-25 08:18:22 -07:00
Smit Patel
bb916af873
Update API Check related files
...
React to aspnet/BuildTools#238
2017-04-25 08:17:44 -07:00
Chris R
8377d226f1
Execute IHostingStart instances in the primary assembly ( #1033 )
...
* #1000 Execute IHostingStart instances in the primary assembly
Also make the sample app runnable.
Add an opt-out flag, more tests
2017-04-25 07:30:11 -07:00
David Fowler
566a587126
Added ApplicationSchedulingMode to KestrelServerOptions ( #1759 )
...
* Added ApplicationSchedulingMode to KestrelServerOptions
- Made default mode Default instead of ThreadPool
2017-04-25 00:37:09 -07:00
John Luo
b5125caa44
Remove runtime store from sln
2017-04-24 19:05:45 -07:00
jhkimnew
2c5132251b
Updated to support IISExpress and add new test cases for the additional environment variables ( #93 )
2017-04-24 18:17:33 -07:00
David Fowler
9e80fb65bd
Removed the wrote after disconnect log ( #1747 )
...
- It's not very useful
2017-04-24 17:34:56 -07:00
Stephen Halter
f26c31c116
Fix scope id test failures on mac and linux ( #1754 )
2017-04-24 17:15:41 -07:00
Nate McMaster
39047638cc
Add debug logging in address binding when IPv6Any fails
2017-04-24 17:14:43 -07:00
John Luo
8d1ac47d9f
Remove cyclic dependency on self
2017-04-24 17:11:43 -07:00
Stephen Halter
c22f8f5c59
Fix potential race in LibuvThread.StopAsync ( #1756 )
2017-04-24 16:47:48 -07:00
John Luo
280a849060
Move the target files to the correct location in .nupkg
2017-04-24 15:41:28 -07:00
John Luo
d2816d14ab
Make WebHost internal
...
To avoid conflict with WebHost defined in Microsoft.AspNetCore in MetaPackages
2017-04-24 14:46:35 -07:00
John Luo
c6fcd743db
Add more package to package cache.
2017-04-24 12:58:57 -07:00
John Luo
3a4a3ca291
WebHost static API updates
...
- Specify ApplicationName when wrapping RequestDelegate or RouteBuilder
- Add debug logger by default
2017-04-24 12:56:20 -07:00
David Fowler
a98581670e
Schedule connection adapter reads on configured thread pool ( #1741 )
...
* Schedule connection adapter reads on configured thread pool
- This should speed up connection adapters as we don't block
new reads. It *might* also help some of the test flakiness
2017-04-24 12:19:22 -07:00
David Fowler
7e5604b2f5
Remove async from OnRead ( #1746 )
...
- Remove async from fast path.
- Added ApplyBackpressureAsync that pauses and resumes reading
2017-04-24 11:58:52 -07:00
Hao Kung
3085f016e4
Fix GetToken()
2017-04-24 11:58:12 -07:00
Pavel Krymets
df9e48b1f0
Add cancellation support for write async ( #1736 )
2017-04-24 11:58:08 -07:00
Ajay Bhargav Baaskaran
c959795a64
Creating one IAuthenticatedEncryptor per IKey
2017-04-24 10:46:33 -07:00
Nate McMaster
1e61428f8e
Lift packages to target .NET Core 2.0
2017-04-24 10:39:27 -07:00
David Fowler
71d2abed06
More clean up of LibuvConnection ( #1743 )
...
* More clean up of LibuvConnection
- Use C# 7
- Use Buffer<T>.Pin to get access to the underlying
pointer instead of using TryGetPointer.
2017-04-23 20:45:03 -07:00
David Fowler
db44f5b672
Clean up LibuvOutputConsumer ( #1744 )
...
* Clean up LibuvOutputConsumer
- Added UvShutdownReq.ShutdownAsync
- Added Debug.Assert in LibuvAwaitable since it should never race.
2017-04-23 20:22:49 -07:00
Kiran Challa
7d0770b0e4
Revert "Temporarily remove `dotnet run` argument separator"
...
This reverts commit 5f9fa5c009 .
2017-04-23 08:32:58 -07:00
David Fowler
58cc0bc3f9
Fix the configuration key name for PreferHostingUrls ( #1034 )
2017-04-22 10:12:16 -07:00
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
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
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
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
Kiran Challa
e450dd707e
Deleted obsolete razor views and models
2017-04-20 10:03:39 -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
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
=
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
Pavel Krymets
88890595d1
Define a constant to workaround corefxlab classes asses modifier issue
2017-04-18 09:01:35 -07:00
Cesar Blum Silveira
801a7c7652
Add copyright header to TransportSocketOptions.cs.
2017-04-17 20:47:29 -07:00
John Luo
87c513b0d8
Add target to set default target manifest
2017-04-17 17:35:38 -07:00
Hao Kung
d508c027ba
Add GetToken overload to HttpContext as well
2017-04-17 16:41:22 -07:00
David Fowler
e4af3f7e35
Expose a UseTransportThread property on KestrelServerOptions ( #1695 )
...
- This property will force Kestrel to use whatever scheduler the transport
used when write and read callbacks are fired. The default value is false so
all calls to user code including connection adapters, and the application function,
and cancellation token callbacks.
- Transports may expose configuration that changes what the transport thread is.
- Removed InternalKestrelServerOptions.cs
- Added a configurable UseSockets overload (even though there are no options yet)
- Remove RequiresDispatch from the IConnectionInformation
2017-04-17 12:58:28 -07:00
BrennanConroy
ce365799a6
Remove Microsoft.Extensions.Logging.Filter
2017-04-17 11:01:42 -07:00
David Fowler
85d883456b
Remove Reset from IHttpParser ( #1700 )
...
* Remove Reset from IHttpParser
- The parser isn't stateful and doesn't need it
2017-04-17 00:37:40 -07:00
David Fowler
31cc1e5018
Fix extra space
2017-04-16 09:25:28 -07:00
David Fowler
6a403d231e
Clean up IThreadPool interface ( #1696 )
...
- Remove tcs completion methods
2017-04-15 19:04:44 -07:00
Hao Kung
4b4b375909
Add GetToken overload using default scheme
2017-04-14 17:37:05 -07:00
Hao Kung
ef9ff35370
Remove unneeded AuthenticateContext
2017-04-14 17:19:25 -07:00
Stephen Halter
8cd58b042c
Fix tests using Heartbeat
2017-04-14 16:26:27 -07:00
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
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
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
Pavel Krymets
3045cff3c5
Fix adapted output pipe options ( #1682 )
2017-04-13 15:54:48 -07:00
Kiran Challa
f1a59d030e
Supply runtime identifier on publishing standalone apps
2017-04-13 14:19:18 -07:00
Stephen Halter
6036f27f52
Fix deadlocks in startup and shutdown
2017-04-13 12:47:34 -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
4e8872b94d
Implement IServer.StopAsync
2017-04-12 22:30:46 -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
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
John Luo
b49fc08f8b
Prevent USERSECRETS001 warnings while building cache
2017-04-12 13:24:04 -07:00
Steve Sanderson
8c58086030
Make TreeRouter restore RouteData snapshots consistently. Fixes #394 .
2017-04-11 15:36:34 +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
Kiran Challa
ee1cfdf41e
[Fixes #] DeveloperExceptionPage throws when SourceFileContent is null in an ICompilationException
2017-04-11 05:59:17 -07:00
Ben Adams
d29e4d4cf0
Specialized struct generics rather than interface ( #1640 )
...
Changed the IHttpParser interface to be generic. This lets use a struct to
get better code generation and also should allow us to inline calls back into
the handler from the parser.
2017-04-10 19:30:18 -07:00
N. Taylor Mullen
0b324b8ca1
React to Microsoft.AspNetCore.Razor.Evolution => Microsoft.AspNetCore.Razor.Language.
...
aspnet/Razor#1169
2017-04-10 11:53:05 -07:00
Ben Adams
2863cca8ca
FrameFeatureCollection benchmark ( #1643 )
2017-04-09 16:02:18 -07:00
Ben Adams
fb22629da6
Use Span.IndexOf rather than Contains ( #1638 )
...
- Remove Contains method and use IndexOf (which is already vectorized) to look for CR in header values.
2017-04-08 23:45:26 -07:00
John Luo
ce3c71b5b3
Set PreferHostingUrls when IIS adding override address
2017-04-08 20:49:26 -07:00
Stephen Halter
58284bde5c
Don't dispose WriteReqPool and PipeFactory too soon ( #1633 )
2017-04-08 01:35:02 -07:00
David Fowler
0fd885e5eb
Signal the reader after aborting the connection ( #1636 )
...
- This will give it a chance to unwind gracefully before failing
with an invalid request.
Fixes #1632
2017-04-08 01:22:06 -07:00
Pavel Krymets
53b0eea2ec
Use writable buffer writer ( #1564 )
2017-04-07 14:40:10 -07:00
Jass Bagga
033c8adc3a
Add RangeHelper
...
See https://github.com/aspnet/mvc/issues/3702
2017-04-07 14:16:05 -07:00
David Fowler
239b691ff5
A few HttpParser changes ( #1624 )
...
- Renamed KestrelHttpParser to HttpParser
- Removed the generic virtual dispatch as it turns out to be an
order of magnitude slower than regular virtual dispatch. This change
means we also lose the inlining of Frame.OnStartLine and Frame.OnHeader.
2017-04-07 08:35:53 -07:00
Cesar Blum Silveira
f253dbc0c0
Split transport-specific tests and general tests into distinct test projects ( #1588 ).
...
* Rename EngineTests to LibuvTransportTests.
* Move libuv-specific tests into their own test project.
* Move LibuvOutputConsumerTests.AllocCommitCanBeCalledAfterConnectionClose to new OutputProducerTests class and rename it to WritesNoopAfterConnectionCloses.
* Remove TransportContext from TestServiceContext.
* Make KestrelTests depend on Kestrel.Core only.
* Rename Microsoft.AspNetCore.Server.Kestrel.KestrelTests to Microsoft.AspNetCore.Server.Kestrel.Core.Tests.
* Add Microsoft.AspNetCore.Server.Kestrel.Tests test project for WebHostBuilderKestrelExtensionsTests.
* Increase socket receive timeout in MaxRequestBufferSizeTests to mitigate flakiness.
* Anything using TestServer should be a functional test.
* Move out of LibuvTransportTests tests that are not specific to LibuvTransport.
- Move to RequestTests:
- Http11 (rename to Http11KeptAliveByDefault)
- Http10ContentLength (rename to Http10NotKeptAliveByDefault)
- Http10KeepAlive
- Http10KeepAliveNotUsedIfResponseContentLengthNotSet (rename to Http10KeepAliveNotHonoredIfResponseContentLengthNotSet)
- Http10ContentLengthKeepAlive (rename to Http10KeepAliveHonoredIfResponseContentLengthSet)
- Expect100ContinueForBody (rename to Expect100ContinueHonored)
- ZeroContentLengthAssumedOnNonKeepAliveRequestsWithoutContentLengthOrTransferEncodingHeader
- ConnectionClosesWhenFinReceivedBeforeRequestCompletes (test was actually not marked as Theory, and was incorrect)
- RequestsCanBeAbortedMidRead
- RequestHeadersAreResetOnEachRequest
- UpgradeRequestIsNotKeptAliveOrChunked
- HeadersAndStreamsAreReused (rename to HeadersAndStreamsAreReusedAcrossRequests)
- Move to ResponseTests:
- Http10RequestReceivesHttp11Response (rename to Http11ResponseSentToHttp10Request)
- ZeroContentLengthSetAutomaticallyAfterNoWrites
- ZeroContentLengthSetAutomaticallyForNonKeepAliveRequests
- ZeroContentLengthNotSetAutomaticallyForHeadRequests
- ZeroContentLengthNotSetAutomaticallyForCertainStatusCodes
- ConnectionClosedAfter101Response
- ThrowingResultsIn500Response
- ThrowingAfterWritingKillsConnection
- ThrowingAfterPartialWriteKillsConnection
- ThrowingInOnStartingResultsInFailedWritesAnd500Response
- ThrowingInOnCompletedIsLoggedAndClosesConnection
- FailedWritesResultInAbortedRequest
- NoErrorsLoggedWhenServerEndsConnectionBeforeClient
- NoResponseSentWhenConnectionIsClosedByServerBeforeClientFinishesSendingRequest
- ResponseHeadersAreResetOnEachRequest
- OnStartingCallbacksAreCalledInLastInFirstOutOrder
- OnCompletedCallbacksAreCalledInLastInFirstOutOrder
- Remove:
- RePathEscapeTests (theory data to HttpParsingData)
- ReDisconnectingClient (what was that testing?)
2017-04-06 19:09:40 -07:00
John Luo
25842d5f74
Add more packages to cache #21
2017-04-06 19:00:35 -07:00
BrennanConroy
ad1d0cc67d
Pass configuration section to LoggerFactory
2017-04-06 15:27:19 -07:00
Andrew Stanton-Nurse
1ae1ff01a3
Add test logging helpers to Hosting ( #1005 )
2017-04-06 15:19:26 -07:00
John Luo
0da88e0dda
Avoid double escaping in PathString
2017-04-06 13:29:06 -07:00
Andrew Stanton-Nurse
ad79cdd123
fix hangs due to uncleared TCS in IntegrationTesting ( #1008 )
2017-04-06 11:15:45 -07:00
Pranav K
3b016e6832
Use 4.3.0 version of System.Threading.Tasks.Extensions
2017-04-05 18:03:24 -07:00
John Luo
c6c267507a
Temporarity skip AzureIntegration packages due to rename
2017-04-05 17:26:38 -07:00
John Luo
36cd2b899b
Add Microsoft.AspNetCore.All metapackage and build package cache
2017-04-05 17:12:27 -07:00
John Luo
ff3ff939c3
Update WindowsAzure.Storage version ( #217 )
...
* Update WindowsAzure.Storage version
* Remove target fallback
2017-04-05 16:28:43 -07:00
Ajay Bhargav Baaskaran
697745c490
[ Fixes #218 ] Set IXmlRepository using ConfigureOptions
2017-04-05 16:08:18 -07:00
Pavel Krymets
dd02ba577f
Use corefxlab and corefx by source ( #1612 )
2017-04-05 15:37:45 -07:00
Chris R
aa5eb9eb83
#18 rename lightup packages to *.HostingStartup
2017-04-05 12:56:16 -07:00
John Luo
bc003985c6
React to addition of PreferHostingUrls
2017-04-05 12:23:28 -07:00
Stephen Halter
b40d8b4248
Fix naming of IConnectionInformation.OutputReaderScheduler ( #1608 )
2017-04-04 21:30:33 -07:00
glennc
0ab882b6d3
Allow configuration and logging to be configured on WebHostBuilder, setting up for the removal of AddProvider from ILoggerFactory.
2017-04-04 14:43:13 -07:00
Cesar Blum Silveira
7ceea5323a
Rename namespaces/directories/classes in Kestrel.Core and Transport.Libuv ( #1582 ).
...
- Put everything in the libuv transport package under `Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.*` namespaces.
- Move stuff in Transport.Libuv/Internal/Http and Transport.Libuv/Internal/Infrastructure to Transport.Libuv/Internal (keep the Networking directory for the libuv wrappers).
- Add `Libuv` prefix to most libuv internal classes.
- Rename `KestrelEngine` to `LibuvTransport`.
- Rename `SocketOutputConsumer` to `LibuvOutputConsumer`.
- Rename `SocketOutputProducer` to `OutputProducer`.
- Fix namespaces in `Microsoft.AspNetCore.Server.Kestrel.Core.`
2017-04-04 13:45:02 -07:00
Pranav K
9b5a26f774
Updating versions to 2.0.0-preview1
2017-04-03 21:41:09 -07:00
Cesar Blum Silveira
6a66323a99
Remove Kestrel.Core dependency from Transport.Libuv ( #1584 ).
2017-04-03 20:54:01 -07:00
Cesar Blum Silveira
6bd0344880
Add Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions project ( #1582 ).
...
- Changes the design to have one ConnectionHandler per endpoint.
2017-04-03 15:09:03 -07:00
Stephen Halter
f285b18f08
Ensure no data is written to a connection after uv_shutdown ( #1600 )
2017-04-03 14:58:43 -07:00
Pavel Krymets
c7113e1c60
Revert "Fetch corefx lab sources and compile them into kestrel ( #1581 )"
...
This reverts commit 13ee32b7ab .
2017-04-03 14:08:27 -07:00
Pavel Krymets
13ee32b7ab
Fetch corefx lab sources and compile them into kestrel ( #1581 )
2017-04-03 13:21:17 -07:00
Pranav K
6a5f7dec10
Investigate System.Reflection.TypeExtensions added to unbreak tests
...
Fixes #987
2017-04-03 11:55:18 -07:00
Andrew Stanton-Nurse
11de3fd384
Fix issue with remote deployer wait
2017-04-03 08:48:58 -07:00
David Fowler
f787c5277c
Remove unused span ( #1599 )
2017-04-02 23:53:49 -07:00
David Fowler
547ad80a27
Don't update consumed if we didn't see a new line ( #1592 )
...
* Don't update consumed if we didn't see a new line
- The start line parser incorrectly updated the consumed cursor
when it attempted to find new lines across buffers. This change fixes
that and also removes passing the span by reference (which will be illegal).
- Added a unit test
2017-04-02 00:03:06 -07:00
Nate McMaster
83958886cc
Implement IHttpRequestIdentifierFeature on Frame
...
This feature generates a unique ID per request. This unique ID can be
used in event source and logging.
Also, this change improves KestrelEventSource by moving it back into the
Kestrel.Core assembly and de-coupling from the Libuv transport. This
adds two new events, RequestStart and RequestStop, which can be used to
identify the correlation between connection ID and request trace
identifier.
2017-03-31 16:54:35 -07:00
Andrew Stanton-Nurse
915e984f32
increase timeout for remote deployer ( #1001 )
...
Turns out it takes a while to deploy to nano server
2017-03-31 14:34:14 -07:00
Chris R
975cfcb8ce
#16 Create a lightup package for Application Insights
2017-03-31 12:01:45 -07:00
Hao Kung
13925be91e
Initial Auth 2.0 checkin
2017-03-31 11:56:20 -07:00
Cesar Blum Silveira
6b9d54265f
Call ProduceEnd() before consuming request body if response has already started ( #1530 ).
2017-03-31 11:08:55 -07:00
David Fowler
b0bd5475cd
More decoupling ( #1572 )
...
- Remove Libuv and Hosting dependency from Kestrel.Core
- Kestrel.Https and Kestrel.Core depend on Hosting.Abstractions
* wip
* Added separate ServerAddressesFeature
* Review feedback
- Added TlsConnectionFeature to Https
2017-03-30 20:14:50 -07:00
Andrew Stanton-Nurse
b4b671556a
fix nginx deployer ( #998 )
...
* fix nginx deployer
* pr feedback
2017-03-30 15:31:07 -07:00
Chris R
c3a01be904
#9 Add Lightup package and sample. Remove IISIntegration.
2017-03-30 11:54:47 -07:00
Andrew Stanton-Nurse
7774ed50fa
additional checks and logging for iisx shutdown ( #997 )
2017-03-30 11:48:24 -07:00
John Luo
4cdc970055
Server addresses configuration enhancements
...
Add PreferHostingUrls to IServerAdressesFeature
Add extension to IWebHostBuilder to set this flag
2017-03-30 10:16:47 -07:00
Andrew Stanton-Nurse
f15c99c980
more logging and more resiliant port selection ( #996 )
2017-03-30 09:46:50 -07:00
David Fowler
c3ad007b0d
Fixed regression caused by transport refactoring ( #1573 )
...
* Fixed regression caused by transport refactoring
- Libuv should not close the socket until it has started it. Before this was enforced
by calling ReadStart before starting the frame but the flow has changed. Now that closing the connection
is communicated via the pipe, we need to start consuming writes after calling ReadStart.
- Renamed OnSocketClosed to Close and moved dispose and logging into that method.
Fixes #1571
2017-03-30 09:33:28 -07:00
Cesar Blum Silveira
1be31ae2ce
Throw if UseUrls specifies HTTPS or path base ( #1519 ).
2017-03-29 20:23:51 -07:00
Cesar Blum Silveira
e64bffd25c
Remove deprecated property KestrelServerOptions.MaxRequestBufferSize ( #1027 ).
2017-03-29 20:15:08 -07:00
Nate McMaster
6b6a8347cc
Add Connection as a primary request header
2017-03-29 16:40:50 -07:00
Nate McMaster
686829d226
Add tests for WritableBuffer extensions and rename WriteAscii => WriteAsciiNoValidation
2017-03-29 16:10:31 -07:00
Stephen Halter
7f785588ef
Transport agnostic kestrel refactoring ( #1551 )
...
- Add transport interfaces
- Create separate Core and Libuv projects
#828
2017-03-29 16:06:05 -07:00
Pavel Krymets
7890fdbf94
Add Activity tracking to HostingApplication ( #964 )
2017-03-29 15:36:48 -07:00
Hao Kung
0e6db5af0f
Bump to netstandard1.1 for options
2017-03-29 14:32:35 -07:00
Nate McMaster
1c1681c26f
Revert "Log status of port before starting server with SelfHostDeployer ( #993 )"
...
This reverts commit f79904404e .
2017-03-29 09:22:11 -07:00
Steve Sanderson
5cb1846dd2
Fix and reorganise WebpackDevMiddleware.ts following PR
2017-03-29 14:18:37 +01:00
Steve Sanderson
1f03b1e633
Tiny shortcut to reduce string checking in non-debug scenarios
2017-03-29 12:02:02 +01:00
Steve Sanderson
8544714cbb
Revert IsWarning code path to avoid breaking change (e.g., if someone overrode OnErrorDataReceived to receive such lines)
2017-03-29 12:02:02 +01:00
Thomas Hermann
0c09c68b77
Support V8 Inspector Integration for Node.js
...
Addresses #796
2017-03-29 12:02:02 +01:00
Steve Sanderson
ee601bed50
Minor doc tweaks
2017-03-29 11:41:38 +01:00
Thomas Hermann
ce40973859
Add option to configure Webpack Hot Middleware client
...
Addresses #667
2017-03-29 11:35:57 +01:00
peterlazzarino
347524a116
Add status code response capabilities to PrerenderTagHelper and RenderToStringResult. Client can now send status codes back based on client routes.
2017-03-29 11:32:37 +01:00
Steve Sanderson
6ed6b8e3d2
Set AutoCompleteOnClose=false on JsonTextWriter. Fixes #822
2017-03-29 10:27:50 +01:00
David Fowler
c1487bf93d
Fix some style nits
2017-03-28 11:53:35 -07:00
Vance Morrison
8165609f4e
Logging optimization.2 14 ( #944 )
...
* Trivial change to avoid an allocation when logging is off (normal case).
2017-03-28 11:43:58 -07:00
Nate McMaster
f79904404e
Log status of port before starting server with SelfHostDeployer ( #993 )
2017-03-28 10:48:46 -07:00
Chris R
d6322872ed
#348 Implement IISHostingStartup
2017-03-27 15:54:34 -07:00
John Luo
2bdbbbf41d
UseMiddleware resolves InvokeAsync in addition to Invoke
2017-03-27 11:28:09 -07:00
John Luo
10cdfd9fa2
Remove redundant SkipIfCurrentRuntimeIsCoreClrAttribute
2017-03-25 21:31:49 -07:00
Pranav K
f66753cc3c
Remove net451 as a cross-compile target
2017-03-24 16:01:41 -07:00
Pranav K
b3b846c27e
Remove net451 as a cross-compile target
2017-03-24 11:46:13 -07:00
Pranav K
2df3639535
Add System.Reflection.TypeExtensions to workaround test failures
2017-03-24 11:45:47 -07:00
Pranav K
31a2bdffce
Remove net451 as a cross-compile target
2017-03-24 11:45:47 -07:00
Pranav K
d6d13a0986
Remove net451 as a cross-compile target
2017-03-24 07:44:11 -07:00
David Fowler
d5cbdb8ac6
Update WebHost.cs ( #986 )
2017-03-23 21:52:55 -07:00
Pranav K
91406009d3
Remove net451 as a cross-compile target
2017-03-23 17:20:12 -07:00
Pranav K
53946e9856
Remove net451 as a cross-compile target
2017-03-23 15:26:48 -07:00
Pranav K
c3d312b0b0
Remove net451 as a cross-compile target
2017-03-23 10:32:42 -07:00
Pranav K
20dcccd847
Revert "Revert "Change compilation targets.""
...
This reverts commit 5f76cd272a .
2017-03-23 09:08:05 -07:00
David Fowler
f090b7a9c6
React to corefxlab changes ( #1539 )
...
- Removed use of TryRead and follow the pin and use pattern in the other APIs
https://github.com/dotnet/corefxlab/pull/1348
2017-03-23 06:52:24 -07:00
David Fowler
32bed162a8
Always log the hosting startup assemblies ( #982 )
2017-03-22 20:57:01 -07:00
David Fowler
ddb1bfeb20
Add support for executing IHostingStartup in specified assemblies ( #961 )
...
* Add support for executing IHostingStartup in specified assemblies
- Assemblies that are specified in the "hostingStartupAssemblies" configuration (; delimited)
setting can specify assemblies that use an assembly level attribute (HostingStartupAttribute)
to specify a type that implements IHostingStartup. This allows hosting environments to
extend the IWebHostBuilder with platform specific behavior before the application runs.
- Added tests
- Log errors that occur during load and execution of the IHostingStartup
when capture startup errors is off. This happens on start of the application.
- Added debug logging on startup to print out the hosted startup assemblies hosting
processed
#951
2017-03-22 20:23:04 -07:00
Pranav K
275cd6b8d1
Remove net451 as a cross-compile target
2017-03-22 18:58:46 -07:00
Pranav K
8f1da12ecd
Remove net451 as a cross-compile target
2017-03-22 18:37:12 -07:00
Pranav K
25ec1f9bd7
Remove net451 as a cross-compile target
2017-03-22 18:28:32 -07:00
Pranav K
1ef45e64b8
Update to net46
2017-03-22 18:26:48 -07:00
Pranav K
8cc72b7871
Update to net46
2017-03-22 18:18:35 -07:00
Pranav K
4d5f726e67
Update to net46
2017-03-22 18:16:42 -07:00
N. Taylor Mullen
5f76cd272a
Revert "Change compilation targets."
...
This reverts commit 42d34e4559 .
2017-03-22 17:22:19 -07:00
John Luo
49daa416ba
Use StringComparer.Ordinal
2017-03-22 14:45:46 -07:00
Pranav K
42d34e4559
Change compilation targets.
...
* Remove net451 as a compilation target
* Upgrade to netcoreapp2.0
2017-03-22 14:37:25 -07:00
Chris R
32bc9a57c9
#317 Dispose WindowsIdentity
2017-03-22 14:08:50 -07:00
Pranav K
237abd0b69
Change compilation targets.
...
* Remove net451 as a compilation target
* Upgrade to netcoreapp2.0
2017-03-22 13:50:35 -07:00
Chris R
c328e22699
#306 Consistently use WindowsPrincipal
2017-03-22 13:43:45 -07:00
Chris R
d103bdb1ba
#287 Do not include an auth display name
2017-03-22 13:31:06 -07:00
Nate McMaster
f246dd3502
Upgrade test projects to .NET Core 2.0
2017-03-22 11:56:27 -07:00
Nate McMaster
13219fafa9
Remove code that moved into CommandLineUtils
2017-03-22 10:19:19 -07:00
Doug Bunting
c9f12a23f8
Disable API Check in projects with untracked breaking changes
2017-03-22 08:33:55 -07:00
Doug Bunting
387e2d8ad1
Disable API Check in projects with untracked breaking changes
2017-03-22 08:33:46 -07:00
Doug Bunting
55507de7dd
Disable API Check in a project with untracked breaking changes
2017-03-22 08:33:14 -07:00
David Fowler
c65734667a
Optimize calls into StreamSocketOuput to WriteFast further ( #1538 )
...
* Optimize calls into StreamSocketOuput to WriteFast further
- Added overloads to array, offset, length to avoid implicit conversions to
ReadOnlySpan.
- Use similar optimizations for multi buffer writes for strings and ints
- Use ref locals in multi write instead of pointers and pinning
2017-03-22 02:16:28 -07:00
Cesar Blum Silveira
72587baac3
Check that MaxRequestBufferSize is greater than or equal to MaxRequestHeadersTotalSize ( #1491 ).
2017-03-21 19:25:56 -07:00
Pranav K
81f2543810
Remove net451 as a cross compile target
2017-03-21 18:03:43 -07:00
Pranav K
52911cd3f1
Change compilation targets.
...
* Remove net451 as a compilation target
* Upgrade to netcoreapp2.0
2017-03-21 16:41:15 -07:00
Nate McMaster
849319bcff
React to changes in command line utils
2017-03-21 16:31:29 -07:00
Nate McMaster
1f8e8fae5d
React to aspnet/Common#205
2017-03-21 15:48:04 -07:00
Derek Gray
d89f66f150
Use a CopyOnWriteDictionary in ApplicationBuilder so branches can set their own properties
...
Fix #783
2017-03-21 14:31:26 -05:00
Matt Mazzola
120fec741d
Add new constructor to TestSever which allows providing preconfigured FeatureCollection to use before Build / Start is invoked. ( #967 )
2017-03-21 10:21:01 -07:00
David Fowler
5fad3c7a3e
Remove async from WriteAsync in SocketOutput ( #1531 )
...
- SocketOutput.WriteAsync will be synchronous for a majority of cases
(until you reach the limit) so no need to pay the async state machine
cost until then.
2017-03-21 09:52:24 -07:00
Ben Adams
32d6b42964
Respond to corefxlab rename (build break) ( #1529 )
2017-03-21 08:43:49 -07:00
Ben Adams
24ed93288e
Use for rather than foreach on List ( #1523 )
...
List enumerator is full fat
2017-03-21 03:26:58 -07:00
David Fowler
f546f16356
Forgot to WriteFast in SocketOutput ( #1527 )
2017-03-21 03:21:31 -07:00
David Fowler
cf576559b6
Fix write after close ( #1526 )
...
- Change Alloc to be a Write with a callback that exposes the WritableBuffer.
This allows the ISocketOutput to implementation to not call the callback if
the underlying socket is dead.
- Added a new functional test
2017-03-20 23:58:26 -07:00
Cesar Blum Silveira
3b40ba52ca
Check if request is aborted before verifying response bytes written ( #1498 ).
2017-03-20 16:02:25 -07:00
Stephen Halter
8923b0da70
Use correct config for response buffer limit ( #1516 )
2017-03-20 15:43:55 -07:00
David Fowler
39819d6708
Added fast path for single memory ReadableBuffer ( #1512 )
...
* Special case single buffer
* Added fast path for single span buffers in UvWriteReq
2017-03-20 00:11:41 -07:00
David Fowler
2ed456fd68
Faster Write implementation using cpblk ( #1511 )
...
* Faster Write implementation
- Use Unsafe.CopyBlockUnaligned to copy bytes to the
WritableBuffer. This is temporary until we get newer
corefx bits with a better span.CopyTo implementation.
- Remove WritableBufferExtensions from Performance project
- Split method into WriteFast and WriteMultiBuffer
- Cache the span for the common case where
the buffer is non empty.
- Use ref locals instead of pinning pointers in fast path
2017-03-19 12:44:01 -07:00
David Fowler
f1e0143d51
React to corefxlab changes ( #1510 )
...
* React to latest CoreFxLab changes
2017-03-19 01:31:11 -07:00
David Fowler
f6e5e74d95
Update packages ( #1509 )
...
* Update packages
* React to API changes in corefxlab
2017-03-18 15:42:01 -07:00
Justin Van Patten
6d2001c67a
Remove explicit static constructors ( #1483 )
...
Explicit static cctors cause the C# compiler to not mark types as
beforefieldinit, which means the JIT will add checks to each static
method and instance constructor of the type to make sure that the static
constructor was previously called.
2017-03-18 12:42:31 -07:00
Ben Adams
5b814a55ac
Speed up WritableBuffer.WriteXxx ( #1504 )
...
* Speed up WritableBuffer.WriteAscii
* Add Benchmarks
* Non-standard header vals are still ascii
* Speedup WriteNumeric
* Don't advance for write
* Remove cruft
2017-03-18 12:25:10 -07:00
David Fowler
f4c6e0b151
Feedback from SocketOutput port ( #1502 )
...
- Fix naming convention in LibuvAwaitable
- Remove case statement in SocketOutput
2017-03-18 01:21:31 -07:00
Pavel Krymets
07cbf7faa9
Use pipelines for SocketOutput
...
- Changed socket output to be based on pipelines
- Changed connection filter glue to be based on pipelines
- Codegen that used `MemoryPoolIterator` for output now uses `WritableBuffer`
- Made `UvWriteReq` async/await friendly with `LibuvAwaitable<T>`
- Deleted MemoryPool and friends
2017-03-18 00:26:00 -07:00
Kiran Challa
95de690acd
Log error when selfhostdeployer is unable to start the process
2017-03-17 15:03:11 -07:00
Cesar Blum Silveira
2ef3804578
Span-based RemoveDotSegments ( #1448 )
2017-03-17 14:42:13 -07:00
Nate McMaster
4abe714f2b
Consolidate dependency versions into one file and remove workarounds
2017-03-15 19:29:21 -07:00
Ajay Bhargav Baaskaran
1ce7fc7245
Use TryAdd to add services
2017-03-15 17:57:44 -07:00
Nate McMaster
baa5cb4912
Consolidate dependency versions to one file and remove workarounds
2017-03-15 17:55:48 -07:00
Nate McMaster
6ef43e91b5
Consolidate dependency versions to one file and remove workarounds
2017-03-15 17:50:59 -07:00
Nate McMaster
101764328b
Consolidate dependency versions to one file and remove workarounds
2017-03-15 17:01:10 -07:00
Nate McMaster
6d59c8b589
Unify dependency versions to one file and remove workarounds
2017-03-15 16:50:26 -07:00
Nate McMaster
890a81562f
Unify dependency versions
2017-03-15 15:36:33 -07:00
Nate McMaster
832cbdcee8
Unify dependency versions to one file
2017-03-15 15:11:25 -07:00
Nate McMaster
de30243c11
Unify dependency versions to one file and remove workarounds
2017-03-15 15:06:58 -07:00
Nate McMaster
5c4a132d71
Unify dependency versions to one file and remove workarounds
2017-03-15 14:24:15 -07:00
Nate McMaster
73d58b7a13
Unify dependency versions to one file
2017-03-15 13:54:28 -07:00
Nate McMaster
e3ca1d1a2c
Unify dependency versions to one file and remove workarounds
2017-03-15 13:47:45 -07:00
Nate McMaster
e8db0cb43e
Unify dependency versions to one file and remove workarounds
2017-03-15 13:25:35 -07:00
Nate McMaster
fd3486df0f
Unify dependency versions to one file and remove workarounds
2017-03-15 12:58:08 -07:00
Nate McMaster
f5783ee382
Unify dependency version to one file and remove workarounds
2017-03-15 11:43:28 -07:00
Nate McMaster
ce6c832465
Unify dependency version to one file
2017-03-15 11:39:16 -07:00
Nate McMaster
45874704a9
Unify dependency version to one file and remove workarounds
2017-03-15 11:01:09 -07:00
Nate McMaster
6a61e10a4b
Unify dependency versions and remove workarounds
2017-03-15 10:47:41 -07:00
Cesar Blum Silveira
632780dd16
Remove splitting of path and path base ( #1050 ).
2017-03-15 09:57:33 -07:00
Nate McMaster
d1d656d5b8
Add samples and update READMEs ( #275 )
2017-03-15 09:29:05 -07:00
Ajay Bhargav Baaskaran
cde3b96aa7
[ Fixes #134 ] Refactored DI support
...
- Refactored builder extensions and service collection extensions
- Refactored Settings/Configuration/Descriptor
- Removed ConfigurationCommon/AuthenticatedEncryptorConfigurationExtensions
- Added IAuthenticatedEncryptorFactory and implementations
- Refactored IKey to have Descriptor instead of CreateEncryptorInstance()
- Handled Repository/Encryptor special logic
- Added samples
- Updated tests
2017-03-14 19:58:46 -07:00
Nate McMaster
d4c0d4b81e
Adds an EventSource named 'Microsoft-AspNetCore-Server-Kestrel' with the following event and properties:
...
ConnectionStart:
- connectionId
- scheme
- localEndPoint
- remoteEndPoint
ConnectionStop:
- connectionId
2017-03-14 16:59:11 -07:00
John Luo
9021999c32
Fix deployer for Win7 and Win2008
2017-03-14 15:17:14 -07:00
Nate McMaster
8c32731282
Update dependencies and build version to 1.2.0
...
Unify dependencies
Remove duplcated code from CommandLineUtils
Update appveyor image
2017-03-14 12:22:25 -07:00
Andrew Stanton-Nurse
cb150de808
port dotnet/corefx#17049 ( #151 )
2017-03-14 12:04:59 -07:00
Nate McMaster
64f84811bd
Fix incorrect debug asserts
2017-03-14 11:45:04 -07:00
Nate McMaster
5073d4fdaf
Re-add .NET Framework to tests and other cleanup ( #1494 )
2017-03-14 11:02:49 -07:00
Ben Adams
b94912bcb1
InitializeHeaders only at start of parsing/Fix remaining ( #1488 )
...
* Don't reinitialize header collection each loop
* Correct remaining tracking value
* Add tests
2017-03-13 15:32:28 -07:00
Nate McMaster
1bfa9c4b4b
Make it possible to detect that a process is running inside dotnet-watch by setting 'DOTNET_WATCH=1'
2017-03-13 13:00:22 -07:00
kchanlee
1b02cd2baf
Implement `OwinEnvironment` `IEnumerable.GetEnumerator()` ( #789 )
2017-03-13 07:54:57 -07:00
Justin Van Patten
fc3af1ecfe
Remove explicit static constructors
...
Explicit static cctors cause the C# compiler to not mark types as
beforefieldinit, which means the JIT will add checks to each static
method and instance constructors of the type to make sure that the
static constructor was previously called. This can be avoided by
removing explicit static constructors and initializing static fields
inline.
2017-03-13 07:40:03 -07:00
Cesar Blum Silveira
49f09d5a25
Log rejected request targets.
2017-03-12 18:37:08 -07:00
Justin Van Patten
b612da4e6c
Avoid an unnecessary closure allocation in ListenerSecondary ( #1485 )
...
The tcs is being passed as the state, so use it from the state instead
of closing over it.
2017-03-12 12:20:41 -07:00
Justin Van Patten
a26f96237b
Specify StringComparison when calling string.StartsWith ( #1484 )
...
StartsWith does a culture-sensitive comparison by default. An ordinal
comparison makes more sense here.
2017-03-11 22:31:42 -08:00
arespr
d755f6183a
Merge branch 'dev' into knownmethods-optimizations
2017-03-11 22:50:58 +01:00
Nate McMaster
c97dd446eb
Simplify console output and fix color output on CMD
2017-03-10 09:18:38 -08:00
Nate McMaster
49b328d4c2
Handle absolute, asterisk, and authority-form request targets
...
Improves compliance with RFC 7230 on the expected handling of requests
that have URI or asterisk in the request target.
This means rejecting asterisk requests that are not OPTIONS and rejecting
authority-form requests taht are not CONNECT.
This also means the server will handle the path and query on targets
with absolute URIs as request-targets.
2017-03-09 16:54:12 -08:00
Kiran Challa
0846e13b06
RemoteWindowsDeployer: Changing current working directory to the app output folder
2017-03-08 21:58:48 -08:00
Ben Adams
941d396942
Speed up ParseRequestLine ( #1463 )
2017-03-08 19:27:56 -08:00
Cesar Blum Silveira
bb973decb8
Unify header rejection messages.
...
- Log bad headers with escaped non-vchar characters
2017-03-08 15:27:44 -08:00
arespr
e9250323e0
update GeneratedCodeTests
2017-03-08 22:20:43 +01:00
David Fowler
dbcf34388e
Remove dependency on Utf8String ( #1466 )
...
- Also remove System.IO.Pipelines.Text.Primitives
2017-03-08 12:38:55 -08:00
Thierry Fleury
42d0d40b36
[ Fixes #61 ] Move must keep object reference
2017-03-08 12:26:10 -08:00
arespr
0bca84a268
Add HttpUtilities to CodeGenerator
2017-03-08 19:17:12 +01:00
arespr
0a45cbbb95
Merge branch 'dev' into knownmethods-optimizations
2017-03-08 19:09:00 +01:00
Cesar Blum Silveira
e25eb418bb
Change non-printable char representation in log messages from <0xXX> to \xXX.
2017-03-08 10:05:53 -08:00
David Fowler
1f0bb14546
Clean up left over code from port to pipelines ( #1465 )
...
- Remove unused methods in PipelineExtensions
- Remove AwaitableThreadPool since we dispatch reads
2017-03-08 08:43:11 -08:00
Cesar Blum Silveira
5743d740b4
Convert HTTP parsing FrameTests to IHttpParser tests ( #1416 ).
...
- Also fix an issue in KestrelHttpParser where "Header: \r\n" is
parsed with a value of " " instead of "".
2017-03-07 15:51:11 -08:00
Ben Adams
e2f8c226ef
Simplify TakeSingleHeader and Vectorize ( #1457 )
...
* Sanitize unsafe code
* Vectorize
* Extract Contains and add more tests
2017-03-07 13:30:57 -08:00
Nate McMaster
beb53221c3
Merge branch 'rel/1.0.0' into dev
2017-03-07 12:52:07 -08:00
Pavel Krymets
1294c00618
Cleanup unused code ( #1458 )
2017-03-07 11:52:45 -08:00
Juan Naputi
1c9a4f5705
Fixed typo in IAntiforgery file
2017-03-07 10:31:23 -08:00
David Fowler
02a4342908
Made changes to TakeSingleHeader ( #1453 )
...
* Made changes to TakeSingleHeader
- Remove state machine and just parse in place
- Inline OnHeader into TakeSingleHeader
- Use IndexOfVectorized instead of custom indexof
- Normalize header whitespace error
- Combine IndexOf and IndexOfAny into a single IndexOfNameEnd call
2017-03-07 08:58:55 -08:00
John Luo
06134bc6e0
Add IPv6 loopback address by default #1434
2017-03-06 18:02:28 -08:00
John Luo
a1f4928ed5
Clean up Header qvalue parsing
2017-03-06 14:31:14 -08:00
Yves57
7440d5d29c
Remove allocations and improve Header Quality Values parsing performance
2017-03-06 14:31:13 -08:00
David Fowler
537b06f025
Interleave multispan and single span code path ( #1442 )
...
- Attempt at making the reader better for multispan parsing
- Try tighter inner loop
- Fix boundary case and clean code up
- Update the cursor once instead of after every header
- Fix errors with not updating consumed state on incomplete header payload
- Filled a test hole, removed a condition that should never happen
- Avoid struct copies every iteration when parsing headers
2017-03-06 09:06:28 -08:00
David Fowler
da763b4873
Use ascii decoding routine that disallows null chars ( #1445 )
...
* Use ascii decoding routine that disallows null chars
- GetAsciiString() in newer corefxlab builds allows 0 (which is a valid
ascii char). To avoid future regressions, GetAsciiStringNonNullCharacters()
was added and used in place of GetAsciiString() when interpreting the
request line and headers
- Make GetAsciiStringNonNullCharacters return empty instead of null
2017-03-04 11:26:32 -08:00
David Fowler
20f75605ca
Workaround rogue System.IO.Pipelines on nuget.org
2017-03-03 22:35:41 -08:00
Stephen Halter
ac60f13312
Modify RequestProcessingAsync to call single parse method ( #1427 )
...
* Modify RequestProcessingAsync to call single parse method
* Fix bad request logging
2017-03-03 14:43:32 -08:00
David Fowler
1d685e195e
Parser cleanup and remove line continuation header error ( #1431 )
...
- Cleaned up some parsing logic (removed locals etc)
- Removing line continuation errors cleaned up code duplication
a little bit
2017-03-03 10:04:44 -08:00
John Luo
aac4eebd79
Direct address configuration #297
2017-03-02 15:51:54 -08:00