Commit Graph

9894 Commits

Author SHA1 Message Date
David Fowler e8b6908b04 Update README.md 2015-09-01 02:20:22 -07:00
Stephen Halter e1b472ddc4 Add ServerAddress tests 2015-08-31 10:46:50 -07:00
Stephen Halter d0bd2b3dd0 Configure unix pipes via the hostname instead of the scheme. 2015-08-31 10:46:48 -07:00
Stephen Halter a919ea8d0a Remove unnecessary listener interfaces 2015-08-31 10:46:46 -07:00
Stephen Halter a9b8cfa582 Remove unnecessary use of generics in listeners 2015-08-31 10:46:40 -07:00
Chris R 6bc7df851f Use new HttpContext.Features API. 2015-08-31 09:45:21 -07:00
Chris R 821f470bb5 React to string[] -> StringValues changes. 2015-08-28 14:40:15 -07:00
Chris R 803ec38073 React to string[] -> StringValues changes. 2015-08-28 12:59:00 -07:00
Stephen Halter 40ca61b640 Merge branch 'release' into dev 2015-08-26 16:32:19 -07:00
Stephen Halter 2642c84bf9 Don't automatically set Content-Length: 0 in some circumstances
- When in response to a HEAD Request
- For 101, 204, 205 and 304 responses
- For non keep-alive connections
2015-08-26 16:16:35 -07:00
Hao Kung a4144caedd React to options 2015-08-26 16:05:51 -07:00
Stephen Halter 69759231ff Set Content-Length: 0 when an AppFunc completes without a write
- Previously an incomplete chunked response would be written instead.
- Add test to verify Content-Length: 0 is set automatically.
- Add test to verify HTTP/1.0 keep-alive isn't used if no Content-Length
  is set for the response.
- Add tests to verify errors are handled properly after chunked writes.

#173
2015-08-25 23:17:41 -07:00
Stephen Halter ca0a42a01e Merge branch 'Daniel15/unix-sockets' into dev 2015-08-24 12:53:31 -07:00
Anthony van der Hoorn 92dc38ffd1 Missing "commands" from project.json
This was stopping the project running in VS
2015-08-24 10:21:28 -07:00
Anthony van der Hoorn a984ea77a8 Switch over target on which server is open for 2015-08-24 10:20:32 -07:00
Anthony van der Hoorn 02fefd8b31 Fix problem with client not connecting on the correct port 2015-08-24 10:18:45 -07:00
N. Taylor Mullen ad0dbe7314 Update 'build.sh' to pull Sake from v2 NuGet feed. 2015-08-20 20:47:37 -07:00
N. Taylor Mullen 41b7ce4b23 Update 'build.sh' to pull Sake from v2 NuGet feed. 2015-08-20 20:46:47 -07:00
N. Taylor Mullen 35fd0403a6 Update 'build.sh' to pull Sake from v2 NuGet feed. 2015-08-20 20:46:00 -07:00
N. Taylor Mullen e43e3c7b52 Update 'build.cmd' to pull Sake from v2 NuGet feed. 2015-08-20 15:38:31 -07:00
N. Taylor Mullen 6bddf101ed Update 'build.cmd' to pull Sake from v2 NuGet feed. 2015-08-20 15:37:56 -07:00
N. Taylor Mullen 00e703782d Update 'build.cmd' to pull Sake from v2 NuGet feed. 2015-08-20 15:36:55 -07:00
Stephen Halter 87d53700da Make the GeneratedCode project work on CoreCLR 2015-08-19 17:08:00 -07:00
N. Taylor Mullen a9365e48c2 Update NuGet feed from v2 => v3. 2015-08-19 14:55:07 -07:00
N. Taylor Mullen f61a7b64ff Update NuGet feed from v2 => v3. 2015-08-19 14:54:19 -07:00
N. Taylor Mullen fb56515af8 Update NuGet feed from v2 => v3. 2015-08-19 14:52:43 -07:00
Pranav K 7cdfdddaa0 Unpinnng Dnx.Runtime.Abstractions package version 2015-08-18 21:34:43 -07:00
Pranav K c3c3b7791b Updating to aspnetlitedev. 2015-08-18 14:00:27 -07:00
Pranav K 15dff9dcfa Merge branch 'release' into dev 2015-08-18 14:00:27 -07:00
Pranav K c3825f86c3 Updating to aspnetliterelease. 2015-08-18 14:00:26 -07:00
Pranav K 06551cda3d Updating to aspnetliterelease. 2015-08-18 14:00:22 -07:00
Pranav K b9dec6acfe Updating to aspnetlitedev. 2015-08-18 14:00:22 -07:00
Pranav K d4b686ebea Merge branch 'release' into dev 2015-08-18 14:00:22 -07:00
Pranav K df3168a53a Updating to aspnetlitedev. 2015-08-18 14:00:18 -07:00
Pranav K 6ff976be65 Merge branch 'release' into dev 2015-08-18 14:00:18 -07:00
Pranav K 86c2d546fa Updating to aspnetliterelease. 2015-08-18 14:00:17 -07:00
Stephen Halter 58292c6620 Update "Kestrel" dependency in samples after rename 2015-08-17 15:55:04 -07:00
Pranav K e300e592ec Merge branch 'release' into dev 2015-08-17 14:49:23 -07:00
Pranav K 4b7c990b3e Updating to release NuGet.config. 2015-08-17 14:49:21 -07:00
Pranav K c46fc555ae Merge branch 'release' into dev 2015-08-17 14:48:46 -07:00
Pranav K ed9cd0ec11 Updating to release NuGet.config. 2015-08-17 14:48:44 -07:00
Pranav K 73d959fae7 Merge branch 'release' into dev 2015-08-17 14:47:55 -07:00
Pranav K 17b7e92fc3 Updating to release NuGet.config. 2015-08-17 14:47:52 -07:00
Pranav K e5bea0fa1e Switching to aspnetrelease feed in Universe
Short term fix in the absence of ability to do this via build.cmd.
2015-08-17 14:39:01 -07:00
Pranav K 0b8a3e8fcb Updating to release NuGet.config 2015-08-17 14:10:40 -07:00
Pranav K b87497c6da Tweaking update-release target to be runnable from the CI
* Relying on git log --exit-code to fail in case there are unmerged
  changes in the release branch.
* Specifically update aspnetvnext feed when branching to release.
2015-08-17 14:09:05 -07:00
Daniel Lo Nigro 9ade227abb Implement support for UNIX sockets.
The common use-case for Kestrel in production will be behind a reverse proxy such as Nginx. In cases where the reverse proxy is located on the same machine as the application, connecting via a UNIX socket is more efficient than a TCP socket, as it avoids going through the network layer. Accessing 127.0.0.1 through TCP still needs to initiate a TCP connection and perform handshaking, checksumming, etc, all of which is avoided by using UNIX sockets.

 - Moved TCP-specific stuff from Listener into new TcpListener class (same with ListenerPrimary and ListenerSecondary)
 - Made Listener abstract
 - Created new PipeListener. Note that while the use case is for UNIX sockets, this is called "Pipe" in uv, so I've called this "PipeListener" so the terminology is consistant
 - Uses "unix" URL scheme to determine whether to use socket. "http://127.0.0.1:5000" is for listening via TCP while "unix:///var/run/kestrel-test.sock" is for listening via UNIX socket

#156
2015-08-15 15:50:34 -07:00
David Fowler 412b4b9d69 Use the same libuv install script on travis as kestrel 2015-08-15 03:25:42 -07:00
David Fowler 62a909d1a7 Handle broken assembly versions on mono 2015-08-15 03:12:59 -07:00
Stephen Halter 753d64660d Ignore zero length writes when automatically chunking responses
- Zero length writes would previously be interpreted as the end of response
- Optimize writing the chunked response suffix
- Add tests for automatic response chunking
2015-08-14 15:59:47 -07:00