David Fowler
e68a1b294f
Fix long polling graceful shutdown ( #476 )
...
- If a message was sent and the application was ended in the same
poll request, the connection would be closed by the time the next poll
came in which resulted in a 404. This change waits until the transport writes
all data before closing it.
- Also fixed a test so that the exception started to show client side.
#469
2017-05-22 09:07:26 -07:00
David Fowler
323dae4ce9
Handle case where scanning happens after dispose. ( #475 )
...
- ConnectionManager.Scan would null ref because the timer.Change was being called
after closing all connections.
2017-05-21 23:19:17 -07:00
David Fowler
2aabce48b4
Remove custom routing and path matching from HttpConnectionDispatcher ( #471 )
...
- We're now using the routing system in a very vanilla way now that
we're not using the URL space as part of the protocol.
- Removed the path argument from the HttpConnectionDispatcher (simplifies code and removes duplication from tests)
2017-05-20 00:34:29 -07:00
David Fowler
240a88f7af
Make the http end points more resty ( #470 )
...
- Use HTTP verbs to describe functionality for endpoints
- Updated TransportProtocols.md
2017-05-19 23:37:17 -07:00
Pawel Kadluczka
4bb9721d39
Adding strongly typed Invoke and On overloads
...
See: #311
2017-05-19 09:47:16 -07:00
Nate McMaster
ef7a3514cd
Upgrade test framework versions and fix test issues ( #453 )
2017-05-15 12:50:30 -07:00
Mikael Mengistu
04863032a2
Increase the size of the WebSockets buffer to 4K. ( #448 )
2017-05-15 13:14:45 -04:00
Pavel Krymets
67ecd4746e
Remove unnecessary package references ( #446 )
2017-05-10 15:14:26 -07:00
Andrew Stanton-Nurse
991c1d8517
Implement new Hub Protocol (Part Deux) ( #390 )
...
* convert to new protocol
* removed InvocationDescriptorRegistry because we're not yet sure about custom protocols
* update SocialWeather sample
* Moving ts client to using new protocol
* make the functional tests a little easier to run on ctrl-f5
2017-05-09 12:24:58 -07:00
BrennanConroy
1da4e07fff
Use common ObjectMethodExecutor ( #440 )
2017-05-07 10:05:21 -07:00
Pawel Kadluczka
9d07eeef91
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-05 17:11:55 -07:00
Pawel Kadluczka
c053b8cd9d
Fixing Win7 tests
2017-05-05 17:10:23 -07:00
Andrew Stanton-Nurse
ca9a44afc3
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-04 14:11:16 -07:00
Mikael Mengistu
7f64811ccd
Change targets ( #437 )
...
Target netcoreapp2.0
2017-05-04 14:05:58 -07:00
BrennanConroy
e96096e760
Merge branch 'rel/2.0.0-preview1' into dev
2017-05-03 10:39:46 -07:00
BrennanConroy
0a3c7001d4
React to Logging API changes ( #433 )
2017-05-03 10:39:29 -07:00
Mikael Mengistu
db868af8d8
Added stricter SSE message type parsing ( #410 )
2017-04-28 11:58:10 -07:00
moozzyk
82f99a1424
Work around for a Firefox bug
...
Firefox won't fire EventSource open event until it receives some data. The workaround is to send an empty comment when starting ServerSentEvent transport.
Fixes : #352
2017-04-27 10:34:47 -07:00
Mikael Mengistu
74b318b3e4
Support binary messages in SSE parser ( #418 )
2017-04-26 15:04:48 -07:00
Andrew Stanton-Nurse
5aea7292cd
prevent websocket deadlock ( #419 )
2017-04-25 15:18:47 -07:00
Andrew Stanton-Nurse
1018a20c61
more logging ( #417 )
2017-04-24 12:38:39 -07:00
Andrew Stanton-Nurse
fc54ffc96e
fix build
2017-04-20 16:06:15 -07:00
Andrew Stanton-Nurse
64e9cba14d
fix build broken by PlatformAbstractions ( #409 )
2017-04-20 14:17:45 -07:00
Andrew Stanton-Nurse
c2eec09ba0
react to removal of PlatformAbstractions ( #405 )
2017-04-20 11:01:06 -07:00
Mikael Mengistu
8c8f6c708b
Server-Sent Events Transport + Parser ( #401 )
2017-04-18 16:08:48 -07:00
moozzyk
e691e1cff8
Removing legacy raw format for `send`
...
Fixes issues #383 and #127
2017-04-18 11:34:43 -07:00
Kiran Challa
fd7707e7d2
Upgraded IntegrationTesting package to 0.4.0
2017-04-14 16:38:21 -07:00
moozzyk
db66b1e553
TransportFactory should not try creating WebSocket transport on Win7/2008R2
2017-04-11 16:34:20 -07:00
BrennanConroy
9993fd96da
Use policy names in EndPointOptions ( #340 )
2017-04-11 12:35:31 -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
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
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
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
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
moozzyk
fb512bbf41
Using common XUnitLoggerProvider
...
Fixes #331
2017-03-27 16:19:40 -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
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
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
Andrew Stanton-Nurse
ab3dce85fc
tidy up status codes and transport conflicts ( #306 )
2017-03-20 09:48:15 -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
Nate McMaster
c89ba8c1ec
Consolidate dependency versions to one file
2017-03-15 19:34:12 -07:00
Andrew Stanton-Nurse
0133153bc9
use new protocol for '/send' ( #297 )
2017-03-15 18:03:23 -07:00
Andrew Stanton-Nurse
77e763a516
port aspnet/WebSockets#149 ( #301 )
2017-03-15 15:45:06 -07:00
Andrew Stanton-Nurse
fcbb43cc03
use new CoreFxLab buffer read/write primitives ( #276 )
...
* converted formatters to use IOutput
* convert parsers to use BytesReader
2017-03-14 10:28:54 -07:00
moozzyk
4bacbfeb05
Enabling Debug logging in a flaky test
2017-03-14 08:49:57 -07:00
Pawel Kadluczka
a2d088bc3c
Increasing the timeout of host start ( #279 )
...
* Increasing the timeout of host start
* Increasing log level
2017-03-09 16:58:46 -08:00
Andrew Stanton-Nurse
9f0edefd16
fix #273 by grouping websocket tests ( #278 )
2017-03-09 14:28:24 -08:00
Pawel Kadluczka
a00ec445ef
Moving TS client to a dedicated subfolder ( #274 )
2017-03-09 09:42:59 -08:00
moozzyk
02df601715
Dispatching raising events to separate threads
2017-03-09 09:09:19 -08:00
moozzyk
a93839e1b2
Adding TaskQueue
2017-03-08 17:30:54 -08:00
moozzyk
abc9109cf3
Enabling feedback to SendAsync via asymmetric channels
2017-03-08 17:13:36 -08:00
moozzyk
62c3c15a1f
Fixing a race DisposeAsync is called when StartAsync hasn't finished
...
Fixes : #248
2017-03-08 17:04:18 -08:00
Mikael Mengistu
f374d92712
WebSockets transport now creates correct url ( #268 )
2017-03-07 11:03:41 -08:00
Andrew Stanton-Nurse
78dfd278c1
Integrating new transport protocols ( #257 )
2017-03-07 10:46:36 -08:00
Pranav K
080494fc78
Fix TaskCache type collision
2017-03-05 09:09:54 -08:00
Pawel Kadluczka
0162c19ccf
MSBuildifying gulpified node ( #237 )
...
- Creating an MSBuild project for the TS client
- Adding project references to the TS client project from projects that need the client - (ensures the correct targets dependency graph and prevents building the client multiple times and related races)
- Removing gulp tasks from individual projects (allows containing npm only in the TS client source and node tests)
- Using incremental compilation to build the TS client only when inputs change (prevents building the client multiple times or when not needed at all)
- Removing `npm install` from all the projects (takes up to 10 seconds even if there is nothing to restore) - npm packages will still be installed when running full build (if needed) or need to be installed manually
2017-03-01 15:13:22 -08:00
BrennanConroy
485f9595e2
EndPoint options and injection
2017-03-01 14:38:50 -08:00
Mikael Mengistu
c3b33a2676
Add Url + ILoggerFactory ctor for HubConnection ( #253 )
2017-02-28 16:52:42 -08:00
BrennanConroy
0abac4a20d
Fix null ref in DisposeAsync on ConnectionState
2017-02-28 11:44:25 -08:00
Mikael Mengistu
c1a4b25a66
Remove logger factory requirement from HubConnection ( #238 )
2017-02-28 10:48:45 -08:00
Nate McMaster
af5e7da478
Remove workarounds and unify dependency versions
2017-02-23 17:09:07 -08:00
Andrew Stanton-Nurse
667095661b
convert the samples to use the official client ( #234 )
2017-02-23 10:56:20 -08:00
Andrew Stanton-Nurse
08c550655a
use new Base64 codec in Text and SSE Formatters ( #231 )
...
fix #192
2017-02-22 16:26:58 -08:00
Andrew Stanton-Nurse
9767dbd5c1
fix #209 by converting to byte[] ( #229 )
...
* fix #209 by converting to byte[]
2017-02-22 11:50:37 -08:00
Andrew Stanton-Nurse
701612c859
fix #204 by implementing SSE formatter ( #210 )
2017-02-22 09:30:31 -08:00
Pawel Kadluczka
763d115b08
Re-enabling building for net46 after System.Memory packages were fixed ( #228 )
2017-02-22 09:04:09 -08:00
Andrew Stanton-Nurse
f84362cc76
one last try to get this test de-flaked ( #227 )
2017-02-21 16:15:32 -08:00
Andrew Stanton-Nurse
755ba7613e
Fix #215 and restore tests ( #218 )
...
* fix #215 by properly handling pipe closure
* pr feedback
* pr feedback
2017-02-21 15:27:52 -08:00
moozzyk
9709139a27
Fixing a bug where pending invocations were not terminated correctly
2017-02-21 14:07:51 -08:00
moozzyk
12c6a4b917
Adding IConnection interface
2017-02-21 14:07:50 -08:00
moozzyk
7a4746868a
Removing Dispose from Transport, Connection and HubConnection
...
Converting StopAsync to DisposeAsync
2017-02-21 13:36:54 -08:00
moozzyk
76bd114a2f
Preventing from building ts client multiple times
2017-02-21 11:54:39 -08:00
moozzyk
cc7f835e1d
Creating npm package for ts client
2017-02-21 11:37:13 -08:00
BrennanConroy
6f33ebc1f5
ObjectMethodExecutor
2017-02-17 10:19:32 -08:00
Nate McMaster
7e8f92b418
Remove makefile.shade and add npm install to repo.targets
...
Also, add (commented-out) conditional cross compiling for tests on xplat
2017-02-17 10:07:09 -08:00
moozzyk
607445fc2b
Workaround for broken System.Memory package
2017-02-16 12:41:09 -08:00
moozzyk
ce4a8f0276
Disabling tests broken by new pipelines
2017-02-16 12:40:23 -08:00
Nate McMaster
ef99d7c233
React to aspnet/Korebuild#160
2017-02-16 10:10:08 -08:00
Nate McMaster
f684fcb574
Downgrade to stable packages
2017-02-15 14:23:11 -08:00
Andrew Stanton-Nurse
2a5c4320d2
increase retry count in autobahn tests
2017-02-15 14:15:47 -08:00
moozzyk
a3e847e6cc
De-statificying HubConnection
...
Wiring and raising events correctly
2017-02-15 12:15:35 -08:00
moozzyk
d4fbdd055a
Raising Received event
2017-02-15 12:15:35 -08:00
moozzyk
4f6306f352
Adding rasing Connected and Closed events
2017-02-15 12:15:35 -08:00
moozzyk
966470d269
Adding connection state
2017-02-15 12:15:34 -08:00
moozzyk
3ba95b98af
Converting static ConnectAsync to instance StartAsync
2017-02-15 12:15:34 -08:00
Andrew Stanton-Nurse
70d97dd7b8
finish binary protocol formatter/parser ( #203 )
2017-02-15 12:11:52 -08:00
moozzyk
94dc265658
Fixing build after merge
2017-02-15 09:49:39 -08:00
Mikael Mengistu
cb7692d16e
WebSockets Transport ( #185 )
...
WebSockets transport
2017-02-15 09:24:41 -08:00