Commit Graph

15565 Commits

Author SHA1 Message Date
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
Andrew Stanton-Nurse 581e207e0f fix build 2017-03-31 13:34:46 -07:00
Andrew Stanton-Nurse 049ee03d22 react to aspnet/Hosting#996 (#769) 2017-03-31 13:30:20 -07:00
Andrew Stanton-Nurse 676590eb32 react to aspnet/Hosting#996 (#349) 2017-03-31 13:22:51 -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
Ryan Nowak 0ab49f4977 Fix benchmarks on netcoreapp2.0 2017-03-31 10:39:55 -07:00
David Fowler b4cec03f65 Update libuv package (#1577)
- The latest libuv package has a new linux RID that should
let us remove the work around with setting the RID
in the docker file and systemd service
2017-03-31 10:19:27 -07:00
David Fowler 1bf9b057d4 Converted test projects to run on netcoreapp2.0
* Converted test projects to run on netcoreapp2.0
* Set DOTNET_RUNTME_ID because of an issue in corehost and RID calculation.
2017-03-31 02:58:18 -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 792b71dbcb Add VS Code settings (#1556)
[ci skip]
2017-03-29 12:18:03 -07:00
Pranav K bfd1d48506 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:37 -07:00
Pranav K 99ff496e71 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:34 -07:00
Pranav K a06a765cf4 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:34 -07:00
Pranav K 7dd9d69fe1 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:34 -07:00
Pranav K a0bb843dd5 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:33 -07:00
Pranav K db7095bc90 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:33 -07:00
Pranav K 2e3c35b863 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:33 -07:00
Pranav K e4e62b3156 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:32 -07:00
Pranav K 679a0e60f7 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:32 -07:00
Pranav K 023f612406 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:31 -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 b9c387bf5f Remove obsolete references from gitignore files. Fixes #818 and #819. 2017-03-29 10:33:29 +01:00
Steve Sanderson 6ed6b8e3d2 Set AutoCompleteOnClose=false on JsonTextWriter. Fixes #822 2017-03-29 10:27:50 +01:00
Pranav K 200d8debc0 Use the SDK version of GetOSPlatform 2017-03-28 14:27:54 -07: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