Commit Graph

355 Commits

Author SHA1 Message Date
BrennanConroy 9993fd96da Use policy names in EndPointOptions (#340) 2017-04-11 12:35:31 -07:00
BrennanConroy be88d2918e Disable API Check 2017-04-11 09:23:48 -07:00
moozzyk 04719dee82 Adding transport factory 2017-04-11 09:16:36 -07:00
David Fowler 0546dc21f4 Disable response buffering via the IHttpBufferingFeature (#379)
* Disable response buffering via the IHttpBufferingFeature
- To make sure SignalR works with servers and middleware
that do perform response buffering, disable it via the
IHttpBufferingFeature for SSE.
- Added test to verify buffering is disabled
2017-04-10 19:05:06 -07:00
Kai Ruhnau 4c183b4d00 Quickly fail the UFT-8 validation if the first byte is already invalid 2017-04-10 12:23:46 -07:00
moozzyk 841ceb24b6 Fixing start/stop race in the TS client 2017-04-07 07:59:43 -07:00
John Luo 370df2d6d9 Remove cyclic dependencies 2017-04-05 19:14:01 -07:00
BrennanConroy 2dfada051e React to CoreFx changes 2017-04-05 08:48:30 -07:00
David Fowler 5df022df0c Remove skipped tests and increased timeout for failing test 2017-04-04 22:13:12 -07:00
moozzyk ebb2ce8fc9 Converting transport type from string to enum 2017-04-04 14:00:56 -07:00
moozzyk 7944be712f Allow starting connection only once 2017-04-04 10:49:10 -07:00
David Fowler abafae8cd3 Remove VersionPrefix from Sockets (#369) 2017-04-04 10:38:23 -07:00
David Fowler 3b8e1a5380 Added a close timeout to the web socket transport
- Today we don't end the request if the application completes
but the websocket transport hasn't gotten the receive frame as yet.
This changes adds a WebSocketOptions.CloseTimeout to EndPointOptions
that allows configuring this timeout. When the timeout is reached, we abort
the connection and end the transport task so that the request can end.
- Added tests for websocket timeout and skipped tests for application timeouts
2017-04-04 09:59:41 -07:00
Pranav K 6be9cfed91 Updating versions to 2.0.0-preview1 2017-04-04 06:57:42 -07:00
David Fowler 87e6da6e4c Handle exceptions and Cancellation in DisposeAsync (#366) 2017-04-03 22:21:41 -07:00
David Fowler 8da2dddd49 Fix issue where multiple calls to dispose don't wait properly (#360)
* Fix issue where multiple calls to dispose don't wait properly
- DisposeAsync returned immediately to anyone but the first caller.
This means that it was possible to end the request before properly
waiting on the transport task which means writing after dispose was possible.
- Added a test
2017-04-03 15:25:45 -07:00
BrennanConroy f6f0007c12 React to CoreFx byte[] slice 2017-04-03 11:45:00 -07:00
moozzyk d9faf17f5c * Fixing a racey test
* Fixing a misplaced test file
2017-03-31 13:54:46 -07:00
Alexis Nowikowski 3d29b7854b Bugfix issue #355: Don't handle Invocation when no InvocationHandler … (#356)
- Don't handle Invocation when no InvocationHandler is present
2017-03-31 09:44:57 -07:00
Pranav K f87e0234e2 Updating to 2.0.0 Internal.AspNetCore.Sdk 2017-03-29 11:30:37 -07:00
Kiran Challa b2bd3e0841 Upgraded Json.NET version to 10.0.1 2017-03-28 11:39:09 -07:00
moozzyk fb512bbf41 Using common XUnitLoggerProvider
Fixes #331
2017-03-27 16:19:40 -07:00
moozzyk af22fec225 Completing pending calls when the connection is closed
Also fixing a small leak where a callback would not be removed if inovke failed due to a send error
2017-03-27 16:00:31 -07:00
BrennanConroy 09667e86ab Port ObjectMethodExecutor race fix 2017-03-27 09:19:08 -07:00
BrennanConroy 6130003193 Convert to netcoreapp2.0 (#338)
* Converted samples and test projects to run on netcoreapp2.0
2017-03-25 09:37:39 -07:00
Andrew Stanton-Nurse 430b8a3686 Disable Autobahn Tests for now
Filed #336 to track restoring them.
2017-03-23 21:20:54 -07:00
moozzyk 70e4ec9a06 Introducing the IConnection interface
Unifying events
2017-03-23 16:07:35 -07:00
BrennanConroy 14d3f2bc9b Allow overridden methods on hubs (#334)
Allow overridden methods on hubs
2017-03-23 14:38:31 -07:00
Andrew Stanton-Nurse 28bf0b445b add some very simple, fairly stupid, benchmarks (#322) 2017-03-23 09:18:49 -07:00
Pawel Kadluczka e955c4b9aa Handling exceptions thrown when invoking a hub method (#332) 2017-03-22 11:06:47 -07:00
moozzyk 5642f09a83 Fixing TS client tests folder name
Mirroring disk folder structure for TS client in VS and adding missing files
2017-03-22 09:18:42 -07:00
Pawel Kadluczka 2ab3d42630 Removing site.js (#330) 2017-03-21 16:10:19 -07:00
Nate McMaster 5cc9ec7375
Update Travis to macOS Sierra
[skip appveyor]
2017-03-21 12:17:40 -07:00
BrennanConroy 8f9f6bcb6f Adding Auth to endpoints 2017-03-21 10:13:56 -07:00
David Fowler 10782d59a2 Dev gate (#326)
* React to corefxlab
2017-03-21 08:48:32 -07:00
David Fowler 63ce7f6160 Supported transports (#294)
Supported transport spike
- Allow turning transports on or off per end point with a flags enum
- Added `TransportType` to Sockets.Common
- Added tests
2017-03-20 12:23:00 -07:00
Mikael Mengistu 9659c73e05 Fix the client raw sample to use user input (#321) 2017-03-20 11:31:44 -07:00
Pawel Kadluczka 913354f688 Unifying errors in parsers 2017-03-20 10:32:06 -07:00
moozzyk 33c94c1a47 Replacing onError with onClosed
Unifying errors in transports
2017-03-20 10:32:06 -07:00
Andrew Stanton-Nurse ab3dce85fc tidy up status codes and transport conflicts (#306) 2017-03-20 09:48:15 -07:00
David Fowler 6a0641f716 Try latest corefx packages (#319)
* Revert "Downgrade packages to fix build"
2017-03-18 23:24:48 -07:00
David Fowler 49baaba32c Downgrade packages to fix build 2017-03-18 02:11:49 -07:00
David Fowler 01a10c3505 Downgrade corefxlab 2017-03-18 00:57:56 -07:00
Pawel Kadluczka 84e9f672f6 .gitignoring global.json 2017-03-17 15:01:46 -07:00
Pawel Kadluczka 61ebf10ea9 Update README.md (#315) 2017-03-17 11:12:53 -07:00
moozzyk 23375c911b Fixes a race where wrong task could be awaited in channel completion
We had a startTask we would await in DisposeAsync and channel completion continuation. This task would be initially set to a completed task and then once StartAsync was invoked it would be replaced with the actual task representing StartAsyncInternal. However if a transport failed immediately after starting the channel completion continuation could have been called before the StartAsyncInternal method completed. In this case we would await the inital completed task and then very likely would fail trying to await _receiveLoop task because it wouldn't necessarily be set.
The fix is to use TaskCompletionSource so we don't try to swap tasks. We need to do some additional state checks because:
- the TaskCompletionSource task may never be completed (e.g. DisposeAsync is being called without starting the connection)
- TaskCompletionSource allows setting the result only once and we should not return its task more than once (e.g. calling StartAsync after connection was successfully started and stopped)

Fixes #304
2017-03-16 13:45:18 -07:00
moozzyk 1d9da9bff8 Moving XUnitLoggerProvider to Common location 2017-03-16 13:45:18 -07:00
Andrew Stanton-Nurse 0911f9023b add additional test for 0-byte sends (#308)
fixes #150
2017-03-16 11:54:18 -07:00
Andrew Stanton-Nurse 1732ac5760 add support for binary format in /poll (#303) 2017-03-16 11:06:26 -07:00
Nate McMaster 4a8a28ec16 React to aspnet/Testing#259 2017-03-16 09:59:12 -07:00