Stephen Halter
513abb4561
Log errors in OnStarting and OnCompleted
2015-10-15 15:35:38 -07:00
Stephen Halter
b98425d3b1
Log unhandled exceptions thrown from the AppFunc
2015-10-15 15:35:36 -07:00
Chris R
c93e4f09f2
React to Authentication changes.
2015-10-15 10:09:33 -07:00
Stephen Halter
7c27c5c0e7
Better handle blocks not taken taken from slabs
...
- If the block needs to be larger than 4032 bytes it won't be backed by a slab
2015-10-14 16:05:35 -07:00
David Fowler
6aaa3cbe06
Use IApplicationLifetime.StopApplication instead of
...
IApplicationShutdown.
React to hosting changes 374526b270
2015-10-14 01:09:11 -07:00
David Fowler
ef38f5589d
React to hosting changes to IApplicationLifetime
2015-10-14 00:46:18 -07:00
Chris R
2fe2e0d841
#1 Implement a full authentication handler.
2015-10-13 13:47:45 -07:00
Chris R
cfe6e22a29
React to IHeaderDictionary changes.
2015-10-12 09:29:34 -07:00
Stephen Halter
3eec43a0c3
Move static BitCount method to base class
...
- Updated comment to point to a specific commit in corefx
- This is more consistent with AppendValue since BitCount doesn't need
to be generated
2015-10-09 17:27:33 -07:00
Stephen Halter
a33a5d0f1b
Merge branch 'benaadams/bitcount-fast' into dev
2015-10-09 17:17:03 -07:00
Louis DeJardin
78177e7082
Fixing rebase errors
2015-10-09 13:26:34 -07:00
Louis DeJardin
6ae0f5d505
PR feedback - code formatting
2015-10-09 13:19:10 -07:00
Louis DeJardin
29b0b124ee
Moving non-changing methods into .cs partial
2015-10-09 13:19:09 -07:00
Ben Adams
ccfeef6353
All features to have backing object
2015-10-09 13:18:32 -07:00
Ben Adams
8f41e47eca
Remove bitfield for locally implemented interface items
...
Only generate type statics for cached features
2015-10-09 13:18:09 -07:00
Ben Adams
3c20053d9a
Don used cached typeof for tests
2015-10-09 13:15:39 -07:00
Ben Adams
56893df7f9
Don't iterate overriden features twice
2015-10-09 13:11:48 -07:00
Louis DeJardin
cbc3b4e6f5
PR Feedback
...
* Sorting namespaces
* Removing `as` casting for Frame's implemented interfaces
2015-10-09 13:10:27 -07:00
Louis DeJardin
dc0eb679ae
Updating unit tests for Frame IFeatureCollection update
2015-10-09 13:09:37 -07:00
Louis DeJardin
71fc2bf2e5
Rough implementation of feature collection optimization
2015-10-09 13:09:35 -07:00
Ben Adams
6b0fa776ca
More comment clarity
2015-10-09 12:16:54 -07:00
Ben Adams
47973541b5
Remove redundant cast
2015-10-09 12:16:53 -07:00
Ben Adams
e107c47913
Add comment explanation
2015-10-09 12:16:52 -07:00
Ben Adams
05702e81e6
more typeof caching
2015-10-09 12:16:50 -07:00
Ben Adams
d48a27dd59
Use bitflag for override and cache typeof in statics
2015-10-09 12:16:49 -07:00
Louis DeJardin
dcf591c832
Rough implementation of feature collection optimization
2015-10-09 12:16:48 -07:00
Stephen Halter
0c1b05ce2d
Merge branch 'release' into dev
2015-10-08 16:40:13 -07:00
Ben Adams
6f506ba988
subsequent block has data - IsEnd is false
...
Resolves #249
2015-10-08 16:18:47 -07:00
Stephen Halter
24c0a8e142
Fix MemoryPoolIterator2.CopyTo's block traversal
...
- This fix prevents large request streams from being corrupted
#234
2015-10-08 16:16:41 -07:00
Ben Adams
9d251cdb54
subsequent block has data - IsEnd is false
...
Resolves #249
2015-10-08 18:13:22 -04:00
Chris R
0b36382448
Merge pull request #236 from benaadams/sanitize-loops
...
Sanitize loops
2015-10-08 10:05:17 -07:00
Ben Adams
0a297688b4
Use Jit recongised, standard loop construct
...
For bounds check elimination.
Convey intent more clearly; eliminate bounds checks
2015-10-08 12:31:21 -04:00
Ben Adams
4250d35347
PR feeback
2015-10-08 01:11:41 -04:00
Pranav K
9fc75d395d
Replace NotNullAttribute with thrown exceptions
2015-10-07 18:05:26 -07:00
Pranav K
bc6502825f
Replacing NotNullAttribute with thrown exceptions
2015-10-07 17:44:11 -07:00
Cesar Blum Silveira
76cbb57f9a
Fix build on Linux.
2015-10-07 15:06:50 -07:00
Ben Adams
05418dd18a
Use corefx implementation
2015-10-07 16:51:10 -04:00
Pranav K
df66c60e24
Reacting to JsonParser renames
2015-10-07 11:28:57 -07:00
Ben Adams
8bf2c814d6
Add BitCount LongExtensions
2015-10-07 12:23:20 -04:00
Chris R
1f50f4c2a8
#231 bind to IPv6Any, add functional tests.
2015-10-05 16:13:11 -07:00
Ryan Nowak
f545f99dab
Add attributes to fix the build
2015-10-05 11:22:30 -07:00
Stephen Halter
2f3a00625a
Initial work to support HTTPS using SslStream
...
- Add extension method "UseKestrelHttps" to IApplicationBuilder
2015-10-05 03:15:18 -07:00
Pranav K
ac6e441f15
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:58 -07:00
Pranav K
aea8716df6
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:48 -07:00
Pranav K
fcd5b55611
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:45 -07:00
Pranav K
49451fb11e
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:45 -07:00
Pranav K
ad9d75a599
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:36 -07:00
Ajay Bhargav Baaskaran
c7e3f98cdd
Enabling NuGetPackageVerifier
2015-09-28 18:11:01 -07:00
Chris R
4510d20a83
#2 Platform handler middleware, sample, tests, functional tests.
2015-09-28 15:16:55 -07:00
Stephen Halter
6d3e5d3bf2
Merge branch 'benaadams/fastpath-header-enumerator' into dev
2015-09-28 12:21:58 -07:00
David Fowler
22d13c4b34
Fixed some small usage issues
...
- Simplify waiting for changes
- Fixed project dependencies
2015-09-27 23:04:10 -07:00
Victor Hurdugaci
3f40980d02
First version of dnx watch
2015-09-27 13:59:07 -07:00
moozzyk
d2f282f54f
Consuming Libuv from NuGet package
...
Fixes #50
2015-09-26 18:00:50 -07:00
Chris R
e3f141fcde
#227 Fix OverflowException in MemoryPool
2015-09-26 06:56:54 -07:00
Stephen Halter
f0137b7b9e
Bind to specific IP addresses if provided with any
...
This still only applies to IPv4.
#98
2015-09-25 16:26:01 -07:00
Ben Adams
1718b69f22
Fast path header enumerator
...
Use strongly typed enumerable as interface's allocates.
2015-09-26 00:16:42 +01:00
damianedwards
a7b65efa75
CR feedback
2015-09-25 14:59:47 -07:00
damianedwards
3c2408db68
Fix tests after rebase
2015-09-25 14:59:47 -07:00
damianedwards
7c46b2bd3b
Use a timer to generate the value for the Date header in responses:
...
- Doing it on each request is expensive
- The Timer is started when the first request comes in and fires every second
- Every request flips a bool so the Timer knows requests are coming in
- The Timer stops itself after a period of no requests coming in (10 seconds)
- #163
2015-09-25 14:59:47 -07:00
Louis DeJardin
5070b8073e
Temporarily commenting out the Debug.Assert of block freeing
...
Unit tests using ad-hoc contexts aren't guaranteed to dispose pools.
That's kinda making unit tests fail, more or less, because Debug...
2015-09-25 14:17:09 -07:00
Louis DeJardin
318f3b7145
Changing Trace.Assert to Debug.Assert
...
* Also Debug.Assert for unreturned memory blocks
2015-09-25 13:01:54 -07:00
Louis DeJardin
f740616573
disposedValue changed to _disposedValue
...
Boilerplate code didn't have _
2015-09-25 12:49:30 -07:00
Louis DeJardin
c42dace9e6
consts looked like local vars
2015-09-25 12:49:30 -07:00
Louis DeJardin
0adbbd0217
Using the well-known-header field without checking set bit
2015-09-25 12:49:29 -07:00
Stephen Halter
dc902f5fc4
Update SocketOutput to not call QueueUserWorkItem unnecessarily
2015-09-25 12:49:28 -07:00
Louis DeJardin
789d5b3595
Writes which are not immediate always return completed tasks
...
They must always be followed with Writes which are immediate, and
returning an incomplete task put them in a state where the callback
might not have been initiated.
2015-09-25 12:49:27 -07:00
Louis DeJardin
5e678fdbaa
Adding volatile keyword to stopping boolean
2015-09-25 12:49:27 -07:00
Louis DeJardin
99fc7e4e50
Moving the Start/Stop logic into Frame.
...
Also formalizes the relationship between the function's Task and
how it relates to graceful shutdown. Specifically how it relates
to finishing the requests currently in progress.
2015-09-25 12:49:26 -07:00
Louis DeJardin
f89a586b75
Removing boilerplate-generated #region
2015-09-25 12:49:25 -07:00
Louis DeJardin
37f7dfd01f
Typo in comments
2015-09-25 12:49:25 -07:00
Louis DeJardin
c424b8437c
Renaming based on PR feedback
2015-09-25 12:49:24 -07:00
Louis DeJardin
844c791b16
Processing function should return Task
2015-09-25 12:49:23 -07:00
Louis DeJardin
091084cfe2
Refactoring MemoryPool class locations
...
Moving Iterator out into its own file rather than being a nested class
Moving pool classes into Infrastructure namespace instead of Http
2015-09-25 12:49:23 -07:00
Louis DeJardin
13defc5a32
Initialize Memory2 in ListenerContext
...
Better than initializing from multiple other classes
2015-09-25 12:49:22 -07:00
Louis DeJardin
5ba1b9fb3c
Secondary listeners need to allocate their own memory pool
2015-09-25 12:49:21 -07:00
Louis DeJardin
6db3d9e645
Using specific exception types
2015-09-25 12:49:21 -07:00
Louis DeJardin
76b528e1d2
Adding comments to MemoryPool classes
2015-09-25 12:49:20 -07:00
Louis DeJardin
ff0affe34d
Removing _frameTask and fixing Task.Run argument
2015-09-25 12:49:19 -07:00
Louis DeJardin
30ec2cb0b1
Harden framing epilog
...
* Connection no longer needes Frame's processing Task
* Any exceptions from unusual processing is logged
2015-09-25 12:49:19 -07:00
Louis DeJardin
28250d9981
Providing Path to application
2015-09-25 12:49:18 -07:00
Louis DeJardin
04f6446a50
Updates for PR feedback
2015-09-25 12:49:18 -07:00
Louis DeJardin
d3a87c4c14
Removing MessageBodyExchanger base class
2015-09-25 12:49:17 -07:00
Louis DeJardin
52dc37eae7
Fixing a header parsing bug
...
When request header data arrives with \r\n split across packets
2015-09-25 12:49:16 -07:00
Louis DeJardin
e5a3bda3a2
Progress on flow control
...
* Dealing with race conditions
* Reworking iterator methods
* Shutdown and Close need to be passed throught the write-behind mechanism
2015-09-25 12:49:15 -07:00
Louis DeJardin
4193c92ba7
Fixing merge conflicts
2015-09-25 12:49:15 -07:00
Louis DeJardin
1f6aaebeda
Changing flow control for incoming data
...
SocketInput is now awaitable
Input buffers are slab-allocated and pinned from large object heap
Request frame parsing is offloaded from libuv thread
2015-09-25 12:49:14 -07:00
Louis DeJardin
557f6d6993
Refactoring response control flow
...
- Bring through both sync and async execution paths
- Remove callback pattern from from and socketoutput write calls
2015-09-25 12:47:51 -07:00
Stephen Halter
1e39473047
uv_pipe_connect returns void
...
This fix prevents Libuv.pipe_connect from throwing when the stack
memory that was previously incorrectly interpreted as the int return
value happens to be negative.
When pipe_connect threw, an assertion failure would follow since the
pipe handle would be closed prematurely.
http://docs.libuv.org/en/v1.x/pipe.html#c.uv_pipe_connect
#205
2015-09-25 11:40:40 -07:00
Eilon Lipton
c4bf10d6e9
Add third party notices for libuv
...
Fixes #218
2015-09-23 15:42:58 -07:00
Chris R
355bc01a15
Hosting#358 Move the default address into Hosting.
2015-09-22 11:56:46 -07:00
Ryan Nowak
e0ac69c9f7
Add JsonPatch
...
Moved from https://github.com/aspnet/Mvc
2015-09-21 11:15:18 -07:00
David Fowler
891b991a34
Use new packInclude feature to include native assets
...
- Now Kestrel won't break when people overwrite the build.cmd
2015-09-19 03:59:58 -07:00
Stephen Halter
47323a88e1
Surface errors from Listener.StartAsync better
...
If CreateListenSocket fails, surface the original error instead of throwing a
NullReferenceException from Listener.Dispose().
#185
2015-09-16 18:19:01 -07:00
Stephen Halter
2d01f2752b
Catch and log uv_accept errors
...
- This is also what is done by node.js
- "tcp, pipe: don't assert on uv_accept() errors (Ben Noordhuis)"
0685707bc6
2015-09-16 18:18:58 -07:00
Stephen Halter
f14af1f409
Don't swallow too many exceptions
...
- Swallowing too many exceptions can end up hiding issues in
Kestrel itself. It's better to let the process die.
- If we want to handle certain exceptions we should be as
specific as possible with our try/catch blocks.
2015-09-16 18:18:55 -07:00
Chris R
2e225b0db6
Hosting#331 Add IServerAddressesFeature.
2015-09-15 12:47:18 -07:00
Pranav K
98af679b0b
Adding NeutralResourcesLanguageAttribute
2015-09-10 18:45:23 -07:00
Pranav K
78de14d248
Adding NeutralResourcesLanguageAttribute
2015-09-10 18:15:27 -07:00
Pranav K
5bf429d212
Adding NeutralResourcesLanguageAttribute
2015-09-10 16:41:24 -07:00
Stephen Halter
958cc3eca3
Add missing arguments to LogDebug arguments in KestrelTrace
2015-09-10 12:40:16 -07:00
Stephen Halter
813127e7f6
Merge branch 'benaadams/negative-threads' into dev
2015-09-10 11:58:09 -07:00
Stephen Halter
ec88e57f67
Remove commented code in KestrelTrace
2015-09-10 11:41:27 -07:00
Stephen Halter
1ebf98d40d
Log message style changes
...
- Disabled some log messages for possibly being too verbose.
- Don't log ConnectionReadFin when there is an error.
2015-09-10 11:41:25 -07:00
Stephen Halter
0ef096b41c
Increment connection id for logging
2015-09-10 11:41:22 -07:00
Ben Adams
dda5774a8b
Throw exception if ThreadCount negative
2015-09-10 08:03:42 +01:00
Ben Adams
887cf2c7be
Negative thread count fix
2015-09-10 02:57:49 +01:00
Stephen Halter
dc08062545
Merge branch 'drussilla/add-logging' into dev
...
Conflicts:
src/Microsoft.AspNet.Server.Kestrel/Http/Connection.cs
src/Microsoft.AspNet.Server.Kestrel/Http/ListenerSecondary.cs
2015-09-09 11:28:09 -07:00
Ivan Derevyanko
ac77c11211
Make ConnectionCallback static again.
2015-09-09 02:13:49 +02:00
Ivan Derevyanko
2b2943d5b0
Restore static delegates
2015-09-09 01:27:44 +02:00
Stephen Halter
2041e4d08b
Prevent pipes from being closed prematurely on OS X and Linux
...
This change fixes the in-process marshalling of TCP handles on Mac and Linux
that is used to support having multiple threads accepting connections from
multiple loops.
On these two platforms, the ReadStart callback somtimes gets called with a
status and pipe_pending_count equal to zero. Now when the status is zero
just exit the callback without closing the pipe.
This change more closely follows the example at
https://nikhilm.github.io/uvbook/processes.html#sending-file-descriptors-over-pipes
2015-09-08 16:21:45 -07:00
Ivan Derevyanko
a93a66fe7c
Replace Trace.WriteLine with ITraceLogger
2015-09-09 00:26:26 +02:00
Ivan Derevyanko
6d47227975
KestrelTrace refactored and added to the ServiceContext. Close aspnet/KestrelHttpServer#141
2015-09-05 18:17:17 +02:00
Kai Ruhnau
5ee80e0155
Fix bug #191 introduced by b25d2d9
2015-09-05 12:29:00 +02:00
Stephen Halter
f10c989d90
Add ServiceContext to make it easier to flow new services through ctors
2015-09-04 15:04:25 -07:00
Stephen Halter
1584d70e1f
Clean up if an exception is thrown in the middle of ServerFactory.Start
2015-09-03 15:26:30 -07:00
Louis DeJardin
c50aec1729
Adding comments to meaningless field names
2015-09-02 21:14:18 -07:00
Louis DeJardin
dffd977c3f
Fixing field names
2015-09-02 20:50:21 -07:00
Louis DeJardin
5c7007a4e9
Fixing member field name
2015-09-02 20:37:11 -07:00
Louis DeJardin
0859d82d6b
Adding private keyword to private enums
2015-09-02 20:33:51 -07:00
Louis DeJardin
3bbb77f9d0
Alphabetizing using statements
2015-09-02 20:31:11 -07:00
Louis DeJardin
b25d2d9772
Continued updates for #184
...
* Reordering members
- Fields
- Constructors
- Properties
- EverythingElse
- NestedTypes
* Removing commented code
2015-09-02 20:08:54 -07:00
Louis DeJardin
2467cf2ade
Nested types must be last
2015-09-02 00:07:58 -07:00
Louis DeJardin
46604d68b3
Initial commit for style cleanup #184
...
* adding private keyword to fields
* one type per file
2015-09-01 22:25:51 -07:00
Chris R
c2192d7bd1
Change IServerInformation to IFeatureCollection.
2015-09-01 15:27:57 -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
Pranav K
7cdfdddaa0
Unpinnng Dnx.Runtime.Abstractions package version
2015-08-18 21:34:43 -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
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
Stephen Halter
3fb33119ee
Initial non-optimized support for automatically chunking responses
2015-08-14 15:59:39 -07:00
Stephen Halter
32c4f314b6
Lock around Connection.End to make it thread-safe
2015-08-14 12:17:06 -07:00
Stephen Halter
4f0480a4d0
Gracefully handle exceptions thrown from OnStarting callbacks
...
- If OnStarting is being called after the app func has completed, return a 500.
- If Onstarting is being called due to a call to write, throw from write.
2015-08-14 12:05:43 -07:00
Stephen Halter
6a01043e1a
Fix ListenerSecondary so it reliably accepts new connections on Windows
...
Calling uv_read_start on a named pipe with a larger than necessary buffer
would cause pieces of the next uv_ipc_frame_uv_stream struct to be read into
the uv_read_start buffer when a lot of tcp handles were passed quickly over
the pipe.
This prevented the struct from properly being queued for the next call to
uv_accept to consume. The empty queue caused the call to uv_accept in
ListenerSecondary to fail and return WSAEWOULDBLOCK leaving the connection
in a zombie state.
2015-08-14 11:57:21 -07:00
Stephen Halter
c0cc511b5b
Prevent access to closed socket in in Connection.End
2015-08-14 11:49:45 -07:00
Stephen Halter
b162202519
Properly close keep alive connections
2015-08-14 11:49:43 -07:00
Chris R
43ebf710ab
Fix regression in reading config
2015-08-14 09:33:02 -07:00
Kirthi Krishnamraju
c7535f127c
fix build break due to aspnet\configuration #246
2015-08-13 22:42:48 -07:00
Stephen Halter
097fb35ddf
Fix startup when you reference the assembly directly instead of Hosting
...
- I missed this change in Program.cs when doing the initial package merging
2015-08-12 15:14:01 -07:00
Stephen Halter
d97b02696f
Merge Kestrel into Microsoft.AspNet.Server.Kestrel
2015-08-11 14:56:20 -07:00
Chris R
b51cf63637
#49 React to CoreCLR Cryptography package changes.
2015-08-11 14:43:06 -07:00
Pranav K
4342f25ece
Reacting to DI changes
2015-08-11 13:04:40 -07:00
Stephen Halter
0ac3c3dad6
More ConfigureAwait(false)
2015-08-11 12:46:08 -07:00
Stephen Halter
688ad9bee7
Merge branch 'benaadams/configure-awaits' into dev
2015-08-11 12:34:53 -07:00
Chris R
9bebd183d7
#396 React to CoreCLR Cryptography package refactoring. Remove transitive dependencies.
2015-08-11 10:34:11 -07:00
Stephen Halter
5dfca955b3
Move GeneratedCode project so no NuGet package gets created
2015-08-05 12:22:59 -07:00
Stephen Halter
7dd256f26e
Add a "dnu restore" prepare step before generating code
...
- This ensures the generated code project's project.lock.json is created
2015-08-05 11:54:17 -07:00
Stephen Halter
51693304c1
Update dependencies after rename to Microsoft.Dnx.Compilation.CSharp
2015-08-05 11:07:13 -07:00
Troy Dai
e174d2e154
Update CoreCLR versions
2015-08-04 10:15:38 -07:00
Troy Dai
b8f930bb4c
Update CoreCLR versions
2015-08-04 10:15:28 -07:00
Troy Dai
7fe2a43b05
Update CoreCLR versions
2015-08-04 10:15:23 -07:00
Stephen Halter
e5144e3139
Include Server and Date in the initial response header dictionary
2015-08-03 16:20:34 -07:00
Stephen Halter
978dd39924
Update the prepare script used to generate code
...
- The syntax to run dnx with a modified appbase has recently changed
2015-08-03 16:20:32 -07:00
Stephen Halter
7446fe4cc7
Update SocketOutputTests to account for the "immediate" Write param
2015-08-03 16:20:30 -07:00
Louis DeJardin
6ff894bb19
Using masked byte sequences to recognize well-known header names
2015-08-03 16:20:28 -07:00
Louis DeJardin
b999b47218
String concatination showed up in profiler
2015-08-03 16:20:26 -07:00
Louis DeJardin
f6dc72544c
Response headers don't need to be queued before subsequent write
2015-08-03 16:20:24 -07:00
Louis DeJardin
c0728edda7
Linq .Any() was causing enumeration
2015-08-03 16:20:22 -07:00
Louis DeJardin
f9cf9f1936
Improvements to appending request header
2015-08-03 16:20:20 -07:00
Louis DeJardin
96b03ee212
Perf - enumerate with struct
...
Conflicts:
src/Microsoft.AspNet.Server.Kestrel/project.json
2015-08-03 16:20:18 -07:00
Louis DeJardin
ad089be477
Removing "I like pie" diagnostics
2015-08-03 16:20:16 -07:00
Louis DeJardin
963f086eb0
Prototypeing a fast header dictionary
...
Conflicts:
src/Microsoft.AspNet.Server.Kestrel/project.json
2015-08-03 16:20:14 -07:00
Chris R
83b2c95385
React to IFeatureCollection changes.
2015-08-03 15:13:58 -07:00
anurse
07304640ed
react to DNX renames
2015-07-31 11:54:52 -07:00
Stephen Halter
4a9515d2e0
Gracefully handle uncaught exceptions in user code when possible
2015-07-30 16:01:33 -07:00
Troy Dai
07de3cafd1
Clean build warnings
2015-07-30 12:14:13 -07:00
Victor Hurdugaci
343d698286
React to DNX renames
2015-07-29 01:04:59 -07:00
Victor Hurdugaci
81e8830c67
React to DNX renames
2015-07-29 00:30:44 -07:00
Stephen Halter
47d7f73bdc
Fix SocketOutput so that it can now complete large writes
...
- Complete in this context means that the callback gets invoked.
- Previously, calls to write would never complete if the buffer contained
more than 64 KB (_maxBytesPreCompleted).
- This is tested by SocketOutputTests.CanWrite1MB.
2015-07-28 16:57:24 -07:00
Stephen Halter
cce9d8f09c
Make SocketOutput more testable
...
- Added a MockLibUv class
- Create a SocketOutputTests class
2015-07-28 16:57:22 -07:00
Stephen Halter
c345849707
Don't use QueueUserWorkItem to trigger write callbacks immediately
...
- In this case we are off the event loop, so we can invoke the callback directly.
- Increase _maxBytesBufferedBeforeThrottling
2015-07-28 16:57:21 -07:00
Stephen Halter
74fa82bca7
Complete WriteAsync Tasks early when there are less than 64KB buffered
2015-07-28 16:57:19 -07:00
Stephen Halter
d723f9da21
Reduce calls to uv_write by calling it with multiple buffers when possible
2015-07-28 16:57:16 -07:00
Louis DeJardin
5e6e5fec01
Adding an IKestralServerInformation.ThreadCount property
...
Will default to 1 until multi-loop stability is ensured
2015-07-27 11:40:39 -07:00
Louis DeJardin
e39fe60da0
Removing commented code
2015-07-24 16:19:15 -07:00
Louis DeJardin
baeb3e7962
Fixing write2.Dispose() to avoid creating closure
2015-07-24 15:47:31 -07:00
Louis DeJardin
17a846ad8e
Method not used by descendants
2015-07-24 15:44:27 -07:00
Louis DeJardin
62ec11be7e
Adding internal Constants class
2015-07-24 15:43:43 -07:00
Louis DeJardin
f935567cfd
Read callback status is always 0 for any error and EOF
2015-07-24 15:36:45 -07:00
Louis DeJardin
b93845be19
Removing debug code
2015-07-24 15:25:44 -07:00
Louis DeJardin
3d45602513
Catch Accept because of EAGAIN
2015-07-24 14:02:42 -07:00
Louis DeJardin
42246fd51b
Using named pipes to dispatch connections to multiple threads
2015-07-24 13:50:13 -07:00
Louis DeJardin
ceeb4edabd
Adding UvPipeHandle
2015-07-24 13:50:10 -07:00
Stephen Halter
a457f6da25
Merge branch 'release' into dev
2015-07-21 14:18:37 -07:00
Stephen Halter
4a284e5f81
Revert "React to FeatureModel package change."
...
This should not have been in the release branch yet!
This reverts commit 3cc0dd7a25 .
2015-07-21 14:17:11 -07:00
Stephen Halter
c199e5eee1
Wait on user-defined OnStarting and OnCompleted callbacks
2015-07-21 12:44:57 -07:00
Chris R
3cc0dd7a25
React to FeatureModel package change.
2015-07-21 12:44:56 -07:00
Stephen Halter
88689ccdb8
Merge branch 'release' into dev
2015-07-21 12:14:46 -07:00
Stephen Halter
b9901c3bfe
Surface fatal exceptions that stop the event loop
...
- Request an app Shutdown so KestrelEngine gets disposed
- Ensure Listener.Dispose doesn't deadlock before the engine
can be disposed
- Rely on the existing logic to rethrow in the fatal error when
the engine gets disposed
2015-07-21 11:58:26 -07:00
Ben Adams
23ffc3fea9
ConfigureAwait(false)
2015-07-19 15:50:42 +01:00
Ben Adams
e69f63e494
ConfigureAwait(false)
2015-07-19 15:47:39 +01:00
Chris R
93477efb41
React to FeatureModel package change.
2015-07-17 09:58:55 -07:00
Pranav K
853ee00ff5
Merge remote-tracking branch 'origin/release' into dev
2015-07-16 08:43:59 -07:00
Pranav K
4103d947f4
Merge remote-tracking branch 'origin/release' into dev
2015-07-16 08:26:01 -07:00
Peter Hsu
3aaae6964f
Fix NPE issue where UvShutdownReq being garbage collected before the shutdown callback executed
2015-07-14 10:36:34 -07:00
Steve Smith
94dba8ff0e
Moved address parsing to ServerAddress
2015-07-13 11:10:25 -07:00
markrendle
98995132de
Pre-create Continue bytes in Frame
2015-07-13 10:43:05 -07:00
mikary
bbd57217f2
React to API change in DependencyInjection
2015-07-07 14:40:20 -07:00
Stephen Halter
0670b7ae61
Ensure all the C# files have copyright notices
2015-07-06 17:49:00 -07:00
Stephen Halter
4b66edc4fe
Move non-nested classes and interfaces to their own files
2015-07-06 17:48:58 -07:00
Victor Hurdugaci
6438362e0a
Add repository information to project files
2015-07-01 20:34:07 -07:00
Victor Hurdugaci
fd038b7b91
Add repository information to project files
2015-07-01 20:13:32 -07:00
Victor Hurdugaci
e332375f0e
Add repository information to project files
2015-07-01 19:42:39 -07:00
anurse
f65ad82c6b
use the factory method to create RNG
2015-06-29 12:39:57 -07:00
anurse
1c50ec7166
clean-up
2015-06-29 12:21:46 -07:00
anurse
61894cb4e0
attempt 57: just don't support web socket client from dnxcore
2015-06-29 12:20:16 -07:00
anurse
cc1b0c36ac
fix #26 by using RNGCryptoServiceProvider on net45
2015-06-29 10:45:04 -07:00
Hao Kung
f724fefbda
React to HttpChanges
2015-06-25 17:28:07 -07:00
Stephen Halter
29098d6383
Fix UvLoopHandle.ReleaseHandle on linux
...
Libuv.loop_close can clear the GCHandle pointer on linux
2015-06-17 17:53:56 -07:00
Stephen Halter
1592459a0b
Dispose Listeners if they fail to start
2015-06-15 10:08:03 -07:00
Stephen Halter
a992c78548
Dispatch user defined callback so it can't block the event loop
2015-06-15 10:07:58 -07:00
Stephen Halter
adc0310491
Ensure all handles still get released after graceful shutdown
2015-06-15 09:43:01 -07:00
Stephen Halter
31057f65bc
Gracefully shutdown even when there are open connections
2015-06-15 09:41:33 -07:00
Stephen Halter
5c6a53c491
Dispose Listeners if they fail to start
2015-06-12 17:02:31 -07:00
Stephen Halter
7e125faa73
Dispatch user defined callback so it can't block the event loop
2015-06-12 17:02:27 -07:00
Chris R
08c0bbbd60
React to OnSendingHeaders rename.
2015-06-12 15:05:45 -07:00
Stephen Halter
106edf8c86
Ensure all handles still get released after graceful shutdown
2015-06-12 12:49:52 -07:00
Stephen Halter
b43e5940e5
Gracefully shutdown even when there are open connections
2015-06-11 17:06:25 -07:00
Hisham Abdullah Bin Ateya
a1409e0294
React to common package name change
2015-06-11 23:42:32 +03:00
Hisham Abdullah Bin Ateya
e632831c09
Using [NotNull]
2015-06-11 22:49:17 +03:00
Hisham Abdullah Bin Ateya
208fa4af36
Using 'nameof' operator instead of magic strings
2015-06-11 22:44:11 +03:00
Troy Dai
430c903f65
Add System.IO to framework assemblies
2015-06-04 10:47:36 -07:00
Kirthi Krishnamraju
7e78374053
React to aspnet/Configuration #195,#198
2015-05-20 17:26:00 -07:00
Chris R
74c8363855
React to CoreClr dependency changes.
2015-05-15 11:34:15 -07:00
Pranav K
0d3c29f46a
Reacting to CoreCLR package updates
2015-05-15 09:57:18 -07:00
Chris R
ff406ecdf1
React to Http namespace changes.
2015-05-07 14:16:46 -07:00
Chris R
bff13b2e9b
React to Http namespace changes.
2015-05-07 13:43:34 -07:00
Troy Dai
2f09b07adc
Package rename: Microsoft.AspNet.DataProtection.Shared -> Microsoft.AspNet.DataProtection.Sources
2015-05-07 10:16:20 -07:00
Troy Dai
fe80a65ffc
React to common package name change
2015-05-07 09:36:15 -07:00
N. Taylor Mullen
552b336a78
Update LICENSE.txt and license header on files.
2015-05-01 14:07:00 -07:00
N. Taylor Mullen
063fb64c8b
Update LICENSE.txt and license header on files.
2015-05-01 13:53:45 -07:00
N. Taylor Mullen
c6416f3520
Update LICENSE.txt and license header on files.
2015-05-01 13:45:56 -07:00
Brennan
cb4361b253
React to DNX package renames
2015-05-01 11:07:18 -07:00
Troy Dai
4a58540bdf
React to DNX packages name change
2015-05-01 11:05:09 -07:00
Brennan
d578779fa6
Revert Runtime.Abstractions
2015-04-29 23:58:04 -07:00
Brennan
a1144274a1
React to Interface package renames
2015-04-29 22:42:00 -07:00
Brennan
7ecbee2f7d
Interfaces->Abstractions
2015-04-29 17:21:04 -07:00
Chris Ross
66b669aa22
React to WebSocket feature API changes.
2015-04-24 10:53:07 -07:00
Matt Ellis
d386e78ee6
Use $HOME as a possible storage location
...
If LOCALAPPDATA and USERPROFILE are both null (as is the case on
Linux/OSX) use "$HOME/.aspnet" as the root folder for data protection
keys
Fixes #76
2015-04-19 21:52:35 -07:00
Pranav K
8983a03fed
Reacting to changes in OptionsModel
2015-04-16 16:57:44 -07:00
N. Taylor Mullen
01a13bfa1d
Add serviceable attribute to projects.
...
aspnet/DNX#1600
2015-04-14 15:00:26 -07:00
Chris Ross
a23b665e8d
Update IServerInformation namespace.
2015-04-10 10:47:31 -07:00
Matt Ellis
ea636140c7
Allow Kestrel to boot when on CoreCLR and *NIX
...
With cross platform .NET Core support coming online, we need to update
our IsWindows check to not assume running on .NET Core means running on
Windows. Since CoreFX doesn't yet expose a method for doing this (they
are working on adding it back), we'll just call Uname and if that
returns an empty string assume that we are on Windows.
2015-04-09 23:58:03 -07:00
Chris Ross
a10245d39f
Replace WebSocket dependency.
2015-04-08 14:50:42 -07:00
N. Taylor Mullen
e0a651e9a6
Add serviceable attribute to projects.
...
aspnet/DNX#1600
2015-04-07 14:54:43 -07:00
N. Taylor Mullen
8b9b809ecd
Add serviceable attribute to projects.
...
aspnet/DNX#1600
2015-04-07 14:41:49 -07:00
Doug Bunting
cf2ba5aa25
Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename
2015-04-02 13:49:31 -07:00
Doug Bunting
5ad7aea8b4
Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename
2015-04-02 13:49:26 -07:00
Doug Bunting
19567ad39d
Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename
2015-04-02 13:49:24 -07:00
Praburaj
33fa06a25c
Fixing dataprotection on IIS
...
Fixes: https://github.com/aspnet/DataProtection/issues/73
On IIS where there is no user profile, the code tries to always read the 32bit registry view irrespective of the bitness of the worker process. So in case of 64 bit app pools the registry key is null so it falls back to in memory ephemeral repository. On 32 bit app pool it can find an appropriate registry key, but the keyRepositoryDescriptor is not populated resulting in a null reference exception.
Current behavior:
X86 throws
X64 falls back to in memory ephemeral
With fix:
Both X86 and X64 will use DPAPI.
2015-04-01 11:54:24 -07:00
Levi B
d2def94712
Reliability: Tweak comparison in key revocation checks
2015-03-18 15:15:58 -07:00
Levi B
fd08325918
Skip registry checks on non-Windows platforms
2015-03-18 10:42:09 -07:00
Levi B
ca840d3711
Code cleanup in KeyDerivation
...
- Rename PRF members to be HMAC functions (which is technically correct)
- Use NotNullAttribute where possible
2015-03-17 22:03:43 -07:00
Levi B
271ec1bd4b
Move IApplicationDiscriminator to Infrastructure namespace
2015-03-17 20:56:58 -07:00
Levi B
22927ec289
Add simple file-based provider instantiation APIs
2015-03-17 15:36:58 -07:00
Levi B
84490846b6
Move time-limited data protector to Extensions project
2015-03-17 14:52:15 -07:00
Levi B
94233e76ff
Remove experimental .Azure project
2015-03-17 10:45:21 -07:00
Levi B
d673df7ef3
Reliability improvements to key ring updates
...
- Optimistically treat failures as transient and continue to use any existing cached key ring for a short period of time
- Updates to the key ring shouldn't block other threads; they can use the outdated version while waiting for the update
2015-03-17 00:46:24 -07:00
Levi B
612a81d9ce
Defer processing <key> descriptors until necessary
...
- Make CreateNewKey more robust against bad key repositories
- Don't hide key deserialization errors
2015-03-16 23:32:20 -07:00
Levi B
4365b531d8
Use C# 6 string interpolation feature
...
Provides cleanup in logging and removes calls to String.Format
2015-03-16 21:38:21 -07:00
Ajay Bhargav Baaskaran
c1e298b010
React to aspnet/HttpAbstractions#160 - Implementing OnResponseCompleted
2015-03-16 15:10:53 -07:00
Levi B
0966e37d94
Doc comment cleanup on GetApplicationUniqueIdentifier
2015-03-14 15:43:39 -07:00
Levi B
82d92064c5
Continued API improvements and refactoring
...
- Add helpful extension methods to Interfaces project
- Auto heuristic detection now writes default protection settings to the ILogger
- Cleanup dead methods / add useful methods in DataProtectionConfiguration
- Update System.Web compatibility project to allow mapping MachineKey.Protect directly to IDataProtector.Protect
2015-03-14 14:29:39 -07:00
Levi B
bf7283697d
Flow logging through the AuthenticatedEncryption types
2015-03-12 16:12:17 -07:00
Levi B
7fe33e8159
DataProtectionServices should prefer registry over defaults
...
Comment cleanup in CNG-GCM ExportToXml
2015-03-12 14:22:45 -07:00
Levi B
4f2288c3da
Introduce concept of a "fallback key"
...
This key is used if there is no preferred default key and the developer has disabled automatic key generation. This will keep the service from falling over if the keys are not rolled and they all expire.
2015-03-11 19:39:41 -07:00
Levi B
58c823bc45
Rename KeyLifetimeOptions -> KeyManagementOptions
...
Simplify default key resolution logic
Introduce API for disabling automatic key generation
2015-03-11 19:39:35 -07:00
N. Taylor Mullen
a43664286a
Update .kproj => .xproj.
2015-03-11 14:09:20 -07:00
N. Taylor Mullen
8d8c6ea823
Update .kproj => .xproj.
2015-03-11 14:09:00 -07:00
N. Taylor Mullen
8c7a47fb00
Update .kproj => .xproj.
2015-03-11 14:05:01 -07:00
Levi B
bb1b49cc1c
Fix PoliCheck violations.
2015-03-10 23:40:39 -07:00
Levi B
e8cc1106d8
Significant refactorings throughout the data protection stack
...
- Move IDataProtectionProvider, IDataProtector, and extension methods to their own package
- Simplify the APIs for registering and configuring the system
- Default implementation now auto-detects capabilities of OS
- Use EncryptedXml for X.509 certificate-based encryption
- Add ability to escrow secret material upon key creation
- Use centralized system policy for default algorithm selection
- Simplify System.Web compatibility layer
- Add unit tests, logging, and doc comments throughout solution
2015-03-10 22:43:45 -07:00
N. Taylor Mullen
37a3c7f2a6
Remove BOM from project.json, *.cmd, *.sh and *.shade files.
2015-03-09 13:02:12 -07:00
N. Taylor Mullen
f796e1a5fc
Remove BOM from project.json, *.cmd, *.sh and *.shade files.
2015-03-09 12:55:39 -07:00
N. Taylor Mullen
8f0b9a56b8
Remove BOM from project.json, *.cmd, *.sh and *.shade files.
2015-03-09 12:52:23 -07:00
N. Taylor Mullen
00a38659d5
Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
2015-03-08 13:00:50 -07:00
N. Taylor Mullen
06a82669f5
Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
2015-03-08 12:51:12 -07:00
N. Taylor Mullen
cb5e7d82f9
Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
2015-03-08 12:48:15 -07:00
Praburaj
9bcc863321
Rename Microsoft.AspNet.Http.Interfaces => Microsoft.AspNet.Http
2015-03-05 16:36:21 -08:00
Praburaj
620e83b590
Rename Microsoft.AspNet.Http.Interfaces => Microsoft.AspNet.Http
2015-03-05 16:23:18 -08:00
Brennan
88eb10dcfe
DI API changes
2015-03-05 14:21:35 -08:00
Hao Kung
32ff156923
React to DI changes, AddDataProtection no longer takes Config
2015-03-04 16:35:33 -08:00
Levi B
bf0f94ce20
Store reg keys in a different folder to mitigate impact of renaming changes
2015-02-26 23:46:02 -08:00
Levi B
e4db4b1189
Temporarily store keys in different folder to resolve issues caused by package renaming
2015-02-26 10:35:40 -08:00
Praburaj
cb3def5668
Changing signature of AppFunc to pass on IFeatureCollection
...
Reaction to this fix: https://github.com/aspnet/Hosting/issues/162
2015-02-25 17:40:17 -08:00
Levi B
e2ca9fc652
Rename to Microsoft.AspNet.DataProtection
...
from Microsoft.AspNet.Security.DataProtection
2015-02-25 16:49:33 -08:00
Levi B
544c83812c
Add unit tests for WeakReferenceHelpers
...
Doc comment cleanup on IOptimizedAuthenticatedEncryptor
2015-02-24 18:19:31 -08:00
Levi B
ab18f52e98
Add CreateProtector convenience extension method
2015-02-24 17:48:29 -08:00
Levi B
6637cb264f
Split KeyDerivation into its own project
...
Move shared crypto code to a common project
2015-02-24 16:20:10 -08:00
Levi B
8ec6dc3712
Code cleanup
...
Rename IAuthenticatedEncryptor2 -> IOptimizedAuthenticatedEncryptor
Rename ProtectedMemoryBlob -> Secret
Add some missing doc comments explaining
2015-02-24 15:49:30 -08:00
Pranav K
71a2712c5a
Reacting to XDocument verson change
2015-02-19 10:15:18 -08:00
David Fowler
e8d9414d92
Removed build time dependency
2015-02-10 10:08:16 -08:00
Levi B
04e7bca8bf
Normalize .kproj files BOM and line endings
2015-01-20 13:49:29 -08:00
Stephen Halter
cc720bd3fe
Handle HttpFeature rename
2015-01-18 21:04:13 -08:00
Stephen Halter
48e8f92aab
Handle HttpFeature rename
2015-01-18 21:01:48 -08:00
David Fowler
e421b3f01c
Throw better error when libuv can't be loaded
...
- Throw more specific exception for *nix machines
2014-12-26 21:24:35 -08:00
Pranav K
8136affef9
Updating exception filters to use when instead of if
2014-12-16 10:21:48 -08:00
Pranav K
2e943eb3ab
Reacting to System.Diagnostics.Tracing version change
2014-12-15 16:20:40 -08:00
Pranav K
017549aa46
Reacting to System.Threading version changes
2014-12-15 15:10:39 -08:00
Pranav K
10a32fda26
Reacting to System.Threading version changes
...
* Sorting project.json references alphabetically
2014-12-15 14:44:33 -08:00
Victor Hurdugaci
f505d52771
Add schema version to kproj files
2014-11-25 11:10:52 -08:00
Victor Hurdugaci
4a2dd8f279
Add schema version to kproj files
2014-11-25 10:54:18 -08:00
Victor Hurdugaci
0c841f934e
Add schema version to kproj files
2014-11-25 10:36:04 -08:00
Hao Kung
f3e9381f16
GetServices -> AddDataProtection
2014-11-24 16:40:13 -08:00
Victor Hurdugaci
c0d8e94287
Update KProj to the latest format
2014-11-12 15:43:31 -08:00
Victor Hurdugaci
1b8f25f7d4
Update KProj to the latest format
2014-11-12 15:15:40 -08:00
Chris Ross
045a6eb4ba
Add new HeadersSent API.
2014-11-06 12:10:15 -08:00
Levi B
cce11ad2ae
Update .kproj files to follow modern conventions
2014-11-05 14:48:56 -08:00
David Fowler
e1a88b6503
Merge branch 'release' into dev
2014-10-31 03:04:33 -07:00
David Fowler
1768bfd25f
Added package descriptions
2014-10-31 03:00:59 -07:00
David Fowler
f0bec06fe0
Merge branch 'release' into dev
2014-10-31 02:57:48 -07:00
David Fowler
82511a8489
Added package descriptions
2014-10-31 02:57:32 -07:00
David Fowler
0174d213d1
Added package descriptions
2014-10-31 01:48:15 -07:00
Levi B
fc4213b1f8
Reliability: Don't compile against 'experimental' language features.
...
This will help prevent Roslyn changes from breaking us.
2014-10-27 16:18:42 -07:00
Levi B
5899177af2
Merge branch 'release' into dev
2014-10-27 15:31:23 -07:00
Levi B
6797dfea48
Fix %APPDATA% detection logic.
2014-10-27 12:55:59 -07:00
Chris Ross
be8859d07c
Cleanup.
2014-10-24 15:25:41 -07:00
Chris Ross
035983f90e
Add missing dependency.
2014-10-24 15:24:01 -07:00
Pranav K
f38e258f89
Removing unused references from project.json
2014-10-24 08:24:39 -07:00
Chris Ross
98e9285fa8
#13 - Detailed UTF-8 validation.
2014-10-23 17:34:26 -07:00
Chris Ross
ae77def939
#20 - Validate OpCodes.
2014-10-23 10:08:14 -07:00
Chris Ross
08441efeae
#18 - Validate close status codes.
2014-10-23 09:38:10 -07:00
Chris Ross
b7c8d5cd42
#17 - Validate close frame body.
2014-10-23 09:15:11 -07:00
Chris Ross
e8c4985322
Verify contination frames.
2014-10-23 08:24:19 -07:00
Chris Ross
31c76a0032
Clean up error handling. Check for control frame fragmentation.
2014-10-22 17:09:57 -07:00
Chris Ross
7d11034790
#14 - Validate reserved bits.
2014-10-22 16:26:20 -07:00
Chris Ross
207767a9b0
#15 - Validate ping frame size limits.
2014-10-22 16:25:22 -07:00
Chris Ross
4a5dbccb46
#13 - Utf8 validation.
2014-10-22 15:55:26 -07:00
Levi B
bd529b3b5b
Fix ManagedAuthenticatedEncryptor not round-tripping payloads properly.
2014-10-22 11:45:39 -07:00
Levi B
6e557dc193
Fix ManagedAuthenticatedEncryptor not round-tripping payloads correctly.
2014-10-21 15:39:48 -07:00
Louis DeJardin
e550d1f1ec
Updating Darwin OS detection
2014-10-20 16:11:48 -07:00
Levi B
76b76ba099
DataProtectionServices should use keys stored in HKLM auto-gen registry when running on IIS without user profile.
2014-10-20 14:54:43 -07:00
Levi B
ca95189a3b
Allow DpapiNGXmlEncryptor to get the current identity's SID on CoreCLR.
2014-10-20 13:43:03 -07:00
Levi B
8fc3607a68
Fix Win7 vs Win8 detection logic for SP800-108-CTR-HMACSHA512.
2014-10-17 11:34:29 -07:00
Stephen Halter
fd677047f4
Change GetService call to GetRequiredService
...
Remove the assertion that the returned service is not null, since the
GetRequiredService extension method will throw instead of ever
returning null.
2014-10-16 17:34:19 -07:00
Levi B
cd33cbfc8f
Add unit tests for CngAuthenticatedEncryptorBase, PBKDF2, and SP800_108-CTR-HMACSHA512.
2014-10-16 15:54:35 -07:00
Levi B
796acc0e34
Restore Win7 + Server Core support routines.
2014-10-15 19:51:51 -07:00
Levi B
132802435b
Add time-limiting data protection capabilities.
2014-10-15 12:57:04 -07:00
Levi B
a0138735a8
Add string-based extension methods to IDataProtector.
2014-10-15 11:51:00 -07:00
Hao Kung
4e43fa24cf
React to options changes
2014-10-14 19:03:51 -07:00
Levi B
e2ad2f1386
Remove dead code from EphemeralDataProtectionProvider.cs.
2014-10-14 17:29:13 -07:00
Levi B
c3b76d14a3
Make EphemeralDataProtectionProvider and ProtectedMemoryBlob work on non-Windows platforms.
2014-10-14 17:26:21 -07:00
Hao Kung
d9119f4c47
React to options rename
2014-10-14 16:38:20 -07:00
Louis DeJardin
dcf55abc9f
Changing shared library name on Unix OS type
2014-10-13 22:48:47 -07:00
Pranav K
7d5a29a9fd
Cleaning up comments
2014-10-10 16:13:57 -07:00
Levi B
769f21783a
Implement new DataProtection pipeline.
2014-10-10 11:17:37 -07:00
Pranav K
542d87d9d2
Removing version from framework assemblies node
2014-10-10 10:45:08 -07:00
Pranav K
83f4d0261d
Reacting to CLR package versioning changes
2014-10-10 10:34:52 -07:00
Pranav K
ba0e3321bf
Reacting to CLR package versioning changes
2014-10-10 10:33:06 -07:00
Pranav K
e1f5c0a4b1
Reacting to CLR package versioning changes
2014-10-10 10:30:37 -07:00
David Fowler
787138322b
Fixup references
2014-10-05 14:21:22 -07:00
David Fowler
72c32367a4
Fixup references and the sample
2014-10-05 11:26:15 -07:00
David Fowler
55922d9107
Fixed references
2014-10-05 04:31:21 -07:00
jhawk42
47f0699235
Win7PlusCoreSystem
2014-10-01 14:57:08 -07:00
Pranav K
1b1e02e9dd
Reacting to System.Text.Encoding package version change
2014-09-11 10:06:52 -07:00
Chris Ross
a2fc6e28a8
Handle IBuilder rename to IApplicationBuilder.
2014-09-10 14:39:52 -07:00
David Fowler
418f745292
Updated to use the new target framework in project.json
2014-09-04 01:52:19 -07:00
David Fowler
ddcce629cf
Made the server project aspnet50 instead of net45
2014-09-04 01:41:48 -07:00
David Fowler
ca360a25f7
Updated to use the new target framework in project.json
2014-08-29 00:10:01 -07:00
David Fowler
77d6318cfc
Updated to use the new target framework in project.json
2014-08-28 23:39:13 -07:00
David Fowler
f7e3823bf1
Updated to use the new target framework in project.json
2014-08-28 22:43:50 -07:00
Levi B
990fe49df1
Remove old Win7-only PBKDF2 implementation.
2014-08-20 23:17:09 -07:00
Levi B
4588b1c898
Add preliminary PBKDF2 routines to unblock identity work.
...
Win7 and Win8 optimizations will be committed as part of the larger DataProtection overhaul.
2014-08-20 22:47:47 -07:00
Pranav K
226e6f3291
Reacting to System.IO package version change
2014-08-20 06:56:34 -07:00
David Fowler
23b13d3143
Removed source files from the project
2014-08-15 09:42:19 -07:00
David Fowler
26084c7f13
Removed source files from the project
2014-08-15 08:17:40 -07:00
David Fowler
abfad7f643
Removed files from project file
2014-08-15 07:44:31 -07:00
Pranav K
839e066d59
Reacting to System.Security.Cryptograph.Encryption package rename
2014-07-17 09:30:34 -07:00
Pranav K
4ec0532087
Reacting to System.Security.Cryptography.Encryption package rename
2014-07-17 08:39:43 -07:00
Pranav K
4fc0be86b6
Reacting to System.Collections version change
2014-07-14 15:11:48 -07:00
David Fowler
33cd0d89aa
Renamed configurations to frameworks in project.json
2014-07-13 22:12:48 -07:00
David Fowler
0a50505f4d
Renamed configurations to frameworks in project.json
2014-07-13 22:09:54 -07:00
David Fowler
4e9a6b7678
Renamed configurations to frameworks in project.json
2014-07-13 21:44:49 -07:00
Louis DeJardin
de6c32dc4b
Guarding against leaking GCHandles in read/write operations
...
See #19
2014-07-08 18:11:09 -07:00
Louis DeJardin
2da561cb7a
Garbage collecting safe handles need to queue the uv_close
...
All of the uv_* calls must be called on the original thread
the finalizer thread cleaning up safehandle classes needs
special handling
see #16
2014-07-08 16:02:09 -07:00
Louis DeJardin
836be5565a
Using weak gchandles from native to managed
...
See #15
2014-07-08 14:51:13 -07:00
Louis DeJardin
21778f631a
Guarding against more read_cb cases
2014-07-07 14:01:02 -07:00
Louis DeJardin
8624b82b2b
Improving callback exception support
...
Also renaming KestralTests to KestrelTests
2014-07-07 13:08:25 -07:00
Chris Ross
6edd238f38
Rename IHttpOpaqueUpgradeFeature to IHttpUpgradeFeature.
2014-07-03 14:14:07 -07:00
Chris Ross
7133ab1b2a
Rename IHttpOpaqueUpgradeFeature to IHttpUpgradeFeature.
2014-07-03 14:07:38 -07:00
Louis DeJardin
747777ab54
Adding dylib binary to source control
2014-07-03 11:30:01 -07:00
David Fowler
d98df8a873
Updated packages due to changes in security contracts
2014-07-01 10:22:31 -07:00
Pranav K
be88722cb5
Moving SampleApp from src to samples
2014-07-01 09:24:32 -07:00
Chris Ross
df425e4796
Server: Expose WebSocketOptions. Make feature replacement configurable.
2014-06-30 12:50:55 -07:00
Chris Ross
b24d808b58
#10 - Rename Middleware package to Server.
2014-06-30 12:22:16 -07:00
David Fowler
9118d037fe
Updated the kproj
2014-06-27 23:02:52 -07:00
Louis DeJardin
7c626431a1
Adding Upgrade support, using WebSocket middleware from sample app
2014-06-27 22:25:38 -07:00
Louis DeJardin
5e51783087
Recompiling windows binaries because uv_loop_size was added
2014-06-27 21:00:06 -07:00
Louis DeJardin
0f1a72e7e0
Tiny CLR won't tell you what the OS is. Assume tiny CLR is running on Windows.
2014-06-27 20:59:39 -07:00
Louis DeJardin
e4b9bd265c
Adjusting Kestrel to run cross platform
2014-06-27 20:01:44 -07:00
Louis DeJardin
9c29ccdd32
Cross-platform LoadLibrary, adjusting libuv apis
2014-06-27 19:45:31 -07:00
Louis DeJardin
08a3685f53
Moving native resources, updating loading code
2014-06-27 19:33:48 -07:00
Louis DeJardin
63637be073
Listener.Dispose should block until operation is complete
2014-06-25 20:57:12 -07:00
Louis DeJardin
9e4bc60205
Adding amd64 support
...
Moves Libuv.dll into nupkg
Uses ILibraryManager to locate location for native libraries
Updates version numbers to 1.0.0-*
Throws exceptions with error text provided by libuv.dll
Bind to ip4 or ip6 endpoints
Getting server defaults from ini
Enabling "Kestrel" to be used as a Main entrypoint
2014-06-20 21:09:44 -07:00
Brice Lambson
6d56ee2471
Bump version to 1.0.0-*
2014-06-19 17:11:14 -07:00
Brice Lambson
9df90f615b
Bump version to 1.0.0-*
2014-06-19 16:10:41 -07:00
Louis DeJardin
17e566c5d1
Adding "server.urls" configuration support to kestrel
2014-06-17 22:45:53 -07:00
Louis DeJardin
6ac6419f4f
Adding support for 'k web --server kestrel'
2014-06-13 13:10:46 -07:00
David Fowler
32aa84d975
Fixed project.json casing
2014-06-13 07:32:14 -07:00
David Fowler
0c0321c694
Renamed Project.json to Project.json2
2014-06-13 07:32:13 -07:00
Chris Ross
2deea2c299
Delete old file.
2014-06-12 20:16:25 -07:00
Chris Ross
7484db54c6
Compile for CoreClr. Seperate Client project. Rename everything.
2014-06-12 20:11:12 -07:00
Louis DeJardin
9c7cb6a958
Adding some tests for Http11
...
Requires updating to test utilities
Adding initial EventSource to try to see some order of events
2014-06-11 17:09:25 -07:00
Louis DeJardin
660babcd7f
Adding core clr configurations
2014-06-10 00:29:16 -07:00
David Fowler
ad738561af
Fixed project.json casing
2014-06-08 23:39:09 -07:00
David Fowler
75d0b29954
Renamed Project.json to Project.json2
2014-06-08 23:39:08 -07:00
Louis DeJardin
ebd6af0fd6
Trying to get 100 Continue working again
2014-06-08 01:03:56 -07:00
Louis DeJardin
044bbb83e6
Getting request body variations to work
2014-06-07 02:49:25 -07:00
Louis DeJardin
313db3f0cf
Removing unnecessary using statements
2014-06-06 22:16:08 -07:00
Louis DeJardin
e517e39aac
Not working, but worth taking a snapshot of the source
2014-06-06 22:13:31 -07:00
Louis DeJardin
c9d6db14bc
Adding an engine, a thread manager, an accept loop
2014-06-03 16:41:55 -07:00
Louis DeJardin
1b412bc99f
Adding libuv p/invokes
2014-06-02 16:32:31 -07:00
Louis DeJardin
3404100f08
Adding empty projects and solution
2014-06-02 16:31:33 -07:00
David Fowler
49196aaec3
Fixed project.json casing
2014-05-26 02:47:54 -07:00
Pranav K
fae42b596d
Updating kproj file to match tooling changes
2014-05-18 20:13:54 -07:00
Andrew Peters
b2a8c3db41
Updating copyright headers
2014-05-08 23:00:47 -07:00
anpete
27d59cd80b
Update file headers
2014-05-01 17:36:30 -07:00
David Fowler
83663f789b
Added support for protected data style DPAPI
...
- This won't work across core clr and desktop and mono but
that's ok for the moment because it unblocks things
2014-04-29 23:07:29 -07:00
Levi Broderick
6bc6da1c7d
Fix build break: inadvertently removed PBKDF2.cs and related functionality
2014-04-15 22:10:09 -07:00
GrabYourPitchforks
1959aa9e7f
Merge from internal DataProtection repo.
2014-04-15 18:03:41 -07:00
David Fowler
26fedbb999
Updated tooling
2014-04-08 01:42:21 -07:00
Pranav K
e019e67325
Updating CoreCLR package versions
2014-03-28 05:53:01 -07:00
David Fowler
ecbb52fa40
Updated to use KoreBuild
...
- Updated solution file to use generated projects
- Updated to use new test runner
2014-03-17 00:37:20 -07:00
Levi Broderick
730b16df37
CryptRand.FillBuffer shouldn't throw if the buffer is a zero-length array.
2014-03-14 14:34:20 -07:00
Chris Ross
704239bca8
Allow zero length sends and receives.
2014-03-11 08:26:42 -07:00
Chris Ross
1853c71114
Narrow ping write lock.
2014-03-10 08:32:59 -07:00
Chris Ross
2dbe40dca5
Negotiate sub-protocol.
2014-03-09 20:55:43 -07:00
Chris Ross
65532849f6
Handle unmasking offset data.
2014-03-08 23:01:53 -08:00
Chris Ross
678af7c22f
Implement KeepAliveInterval, send pings.
2014-03-08 15:14:54 -08:00
Chris Ross
30ca12933e
Cleanup, simple perf.
2014-03-08 10:35:56 -08:00
David Fowler
c111258938
Add required references for K to work
2014-03-08 01:48:44 -08:00
Chris Ross
9ba9f666bb
Fix continuation frame bug.
2014-03-07 22:25:21 -08:00
Levi Broderick
6748897083
Update DataProtection to use a K-generated .resx designer file instead of the VS-generated .resx designer file.
2014-03-07 14:46:19 -08:00
Chris Ross
6ecc36de5a
Cleanup, argument validation.
2014-03-07 09:36:17 -08:00
Levi Broderick
adf2adabc0
Add PBKDF2 support to the data protection library.
2014-03-06 19:42:00 -08:00
Chris Ross
1bd9bf1714
Implement continuation frames.
2014-03-06 13:50:04 -08:00
Chris Ross
1d5b4582f1
Cleanup, unmasking.
2014-03-06 12:32:46 -08:00
Chris Ross
2f770ca4d4
Handle incoming pings and pongs.
2014-03-06 10:29:54 -08:00
Chris Ross
14685821a6
Implement client masking.
2014-03-05 16:55:32 -08:00
Chris Ross
7004026b5e
Implement Close.
2014-03-05 09:28:09 -08:00
Chris Ross
dbd084cb2c
Initial WebSocket projects, handshake, framing.
2014-03-04 21:09:12 -08:00
GrabYourPitchforks
7aa23bfc05
Add DPAPI support to the DataProtection library.
2014-02-13 17:42:04 -08:00
Louis DeJardin
baf338cc83
Apply code formatting
2014-01-28 17:48:49 -08:00
Levi Broderick
869a4ec267
Initial implementation of Microsoft.AspNet.Security.DataProtection
2014-01-28 17:14:26 -08:00