Commit Graph

505 Commits

Author SHA1 Message Date
Brennan c9cdc4891a
Deflake TimeAwaitable finalizer test (#21523) 2020-05-05 19:45:08 -07:00
Julius 63415b7dd2
Jfheins/improve error message (#21295)
* Add test for empty URL

* Throw if URL is empty, adjust test
2020-04-30 12:46:31 -07:00
Brennan 600d5ff497
[SignalR] Fix DataProtection with parallel tests (#21271) 2020-04-28 14:53:27 -07:00
Brennan da1a721003
Move TS tests to async and fix some test log leaking (#21076) 2020-04-27 16:57:28 -07:00
Doug Bunting 2e970f8e4f Quarantine recent test failures
- see also #21080 for another recent failure
2020-04-21 22:27:15 -07:00
David Fowler f9a9788c67
Use the default pipe options for backpressure (#21001)
* Use the default pipe options for backpressure
- This controls memory so clients aren't easily overwhelmed. With the changes made to Pipe to no longer throw if the pause threshold is exceeded makes this work well.
- Remove PipeReaderFactory
- Implement cancellation in SSE

Contributes to #17797
2020-04-21 16:31:18 -07:00
David Fowler ab0a422154
Add missing projects to allow solution build (#21000) 2020-04-19 21:58:35 -07:00
Pranav K 99781d3b25
Share SignalR's HubProtocol implementation in Blazor (#20922) 2020-04-18 10:07:51 -07:00
David Fowler 812dfb97d3
Fix TimerAwaitable rooting (#20937)
* Fix TimerAwaitable rooting
- This fixes an issue where components that use timer awaitable currently need to be explicitly stopped and disposed for it to be unrooted. This makes it possible to write a finalizer.
2020-04-17 19:05:44 -07:00
Scott Addie b89880b1a6
Define default unpkg file for SignalR MsgPack library (#20703) 2020-04-17 02:51:14 +00:00
Scott Addie dcff62347e
Define default unpkg file for SignalR JS client (#20697)
Fixes #20696
2020-04-17 02:07:08 +00:00
Sébastien Ros 998ebad707
Merge branch 'master' into merge/release/3.1-to-master 2020-04-15 13:01:24 -07:00
William Godbe 01429973ee
[release/3.1] Pass access token as query string when running SignalR in the browser (#20466)
* Pass access token as query string when running SignalR in the browser

* WEBASSEMBLY -> BROWSER
2020-04-14 12:59:06 -07:00
William Godbe 8218d6e0e7
Fix various "Type or namespace not found" errors (#20736)
* Add manual packageReferences where needed

* Add more explicit packageRefs

* Fix typo

* undo changes to blazor.server.js

* Fix typo

* Don't gen ref assemblies in CodeCheck
2020-04-14 10:57:26 -07:00
Helgevold Consulting, LLC 70daed535a
Allow access to msgpack configuration options (#20438) 2020-04-13 21:58:03 -07:00
Brennan 8e50db65f3
Cleanup resources in Java client (#20473) 2020-04-08 12:48:50 -07:00
John Luo 8fac70750e
Merge pull request #20421 from dotnet/johluo/migrate-more-extensions-logging
Johluo/migrate more extensions logging
2020-04-03 11:49:22 -07:00
Andrew Stanton-Nurse dee14b7eb5
fix #13651 by logging serialization failures as error (#20116) 2020-04-02 23:41:34 -07:00
TeBeCo c01c8dd476
Changing msgpack options (#20031) 2020-04-02 17:41:40 -07:00
John Luo fcb23108b6 Relocate Logging.Testing to AspNetCore.Testing 2020-04-02 00:16:01 -07:00
Justin Kotalik b8743fc454 merging 2020-04-01 16:05:38 -07:00
Brennan 4cc328aff4
Pass CancellationToken to WaitAsync in client (#20210) 2020-03-31 15:36:24 -07:00
Kevin Pilch f34033a415 Add .vsconfig files in root and beside slns 2020-03-31 14:25:44 -07:00
Brennan 58db57be4c
Plumb a clock interface through SignalR for testing (#19311) 2020-03-31 13:52:10 -07:00
Brennan da4bd70813
Don't wait for client methods to complete when stopping connection (#20104) 2020-03-27 15:27:31 -07:00
Sergey Bakulin 3fe9012821
Add custom header support to Typescript client (#19227) 2020-03-27 15:08:34 -07:00
Brennan 4c94d0b76c
Re-enable SignalR HTTP/2 test (#20178) 2020-03-26 14:15:14 -07:00
Doug Bunting 52065f4234
Merge branch 'master' into merge/release/3.1-to-master 2020-03-25 15:18:56 -07:00
Brennan 9514a865ef
[SignalR] Avoid deadlock with closing and user callbacks (#19612) (#19664)
* [SignalR] Avoid deadlock with closing and user callbacks (#19612)

* fb
2020-03-25 13:13:02 -07:00
nymitr 196f4489e1
Fix memory leak in HubConnection (#20099) 2020-03-24 16:22:27 -07:00
Brennan 49f2364991
StopAsync resets state on inactive connection (#20083) 2020-03-23 16:59:03 -07:00
Andrew Stanton-Nurse 0d80ffa6cd
Fix #10756 by removing some previously-obsoleted SignalR methods (#20015)
* fixes #10756 by removing previously-obsoleted APIs in SignalR

* update reference assemblies

* missed a ref

* think I fixed the test
2020-03-23 20:26:39 +00:00
Steve 56d50e677b
Fix SSR issues for SignalR: require is not defined (#19832) 2020-03-23 09:32:58 -07:00
TeBeCo d3e10b7def
Adding reference to MessagePackAnalyzer to check for MsgPack001 / MsgPack002 (Banned API) (#19989) 2020-03-19 16:05:45 -07:00
Brennan 44812e1637
Skip flaky TS client test (#20004) 2020-03-19 11:33:37 -07:00
Brennan f5a2245957
Use xunit.runner.json in Helix runs (#19922) 2020-03-17 12:26:40 -07:00
Brennan 37c2a882c4
Use Node-Fetch instead of Request for TS client (#19708) 2020-03-13 17:39:25 -07:00
Brennan e00a7c4d52
Increase logging in TS functional tests (#19582) 2020-03-10 07:51:27 -07:00
John Luo 07f5ddb6ac Merge branch 'darc-master-0953e74e-e47a-4645-b853-e2b467f3762c' into johluo/migrate-logging-testing 2020-03-07 13:24:03 -08:00
Brennan f053620895
[SignalR] Avoid deadlock with closing and user callbacks (#19612) 2020-03-06 15:25:51 -08:00
John Luo d2b67cad82 Feedback 2020-03-06 12:42:42 -08:00
John Luo f05e019271
Merge branch 'master' into johluo/migrate-logging-testing 2020-03-04 22:17:06 -08:00
John Luo c181547864 Migration fixup for Logging.Testing 2020-03-04 22:10:12 -08:00
Andrew Stanton-Nurse 3b4be4f51a
Quarantining some tests (#19568) 2020-03-04 11:27:55 -08:00
Sedat Kapanoglu 7e139c9b5f
Add HeaderNames.XRequestedWith = "X-Requested-With" (#19470)
* Add HeaderNames.XRequestedWith = "X-Requested-With"

X-Requested-With is the standard for differentiating AJAX requests and is commonly used. Having this in HeaderNames would prevent typos related to typing this header name. I couldn't find any rationale about excluding this but there might be legitimate reasons like discouraging the use of HTTP headers or differentiating AJAX requests, etc. Please reject this if that's the case.

* Replace "X-Requested-With" references with HeaderNames.XRequestedWith

The only remaining instance is WebSocketsTransport.cs in
SignalR\clients\csharp\Http.Connections.Client which doesn't have
Microsoft.Net in its references. I didn't want to impose a new
dependency as its risky.

* Fix the order of using statements

* Add XRequestedWith to the ref assembly
2020-03-03 15:45:50 -08:00
Andrew Stanton-Nurse e65408a36c
unquarantine a pile of long-passing tests (#19440) 2020-02-28 19:02:58 +00:00
Brennan 2056146c95
Fix flaky timeout test in TS client (#19389) 2020-02-27 08:27:48 -08:00
Brennan 4ac890983e
Fix some skipped SignalR tests (#19070) 2020-02-26 13:28:46 -08:00
Brennan 1ea10f68fc
Create WindowsPrincipal when cloning WindowsIdentity for SignalR (#19337) 2020-02-26 09:54:24 -08:00
Brennan d5cf36acc7
[TS Client] Test message size (#15099) 2020-02-25 15:52:48 -08:00