Commit Graph
11 Commits
Author SHA1 Message Date
Stephen Toub 484b1c373d Clean up HTTP/2 protocol exception handling (dotnet/corefx#37223)
* Clean up HTTP/2 protocol exception handling

- Propagate the GOAWAY and RST_STREAM error codes to the calling code via an exception.
- Propagate to the Http2Stream exceptions incurred in the Http2Connection and that result in an Abort.
- Don't Dispose of the Http2Stream before we try to Cancel it.
- Make Http2ProtocolException serializable, as we generally do that for all of our exception types.
- Add tests that verify sufficient HTTP/2 protocol details are in the exception messages.
- Clean up the error message for the exception.
- Separate the error code and exception into their own files.
- Leave Http2ProtocolException internal for now; we can expose it publicly when we design the all-up public error model for HttpClient.

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/7237da089c09531c36a2110a3bdd9ccaf7c05d77
2019-04-29 13:51:29 -04:00
Tomas Weinfurt ec218e40b5 support HTTP/2 without TLS (dotnet/corefx#36753)
* support HTTP/2 without ssl

* feedback from review

* revert changes GetAsync->SendAsync

* remove unused variable

* feedback from review

* feedback from review

* add missong Trace().


Commit migrated from https://github.com/dotnet/corefx/commit/7ed0c5338941346a3cacb4e18f19aaddb283da90
2019-04-16 11:54:24 -07:00
Tomas Weinfurt bb20d2572d add test for lower casing header name logic (dotnet/corefx#36708)
* add test for 35164

* update SocketsHttpHandler_HttpClientHandler_Cancellation_Test_Http2

* fix uwp tests

* change port from 123 to 443


Commit migrated from https://github.com/dotnet/corefx/commit/4e3b46c22cec88a1f0deaa2f594634e5553412e1
2019-04-15 15:15:32 -07:00
Max Kerr 623c7a23de HTTP/2 Request Cancellation (dotnet/corefx#35118)
HTTP/2 cancellation support, plus improvements to outgoing write buffering.


Commit migrated from https://github.com/dotnet/corefx/commit/d6e36e4ecb0d004de54eb7bdf0ed6cdcb042e3c9
2019-04-11 11:23:45 -07:00
Max Kerr d349951b26 HTTP2: Don't send RST_STREAM in response to window update on closed stream (dotnet/corefx#36410)
Commit migrated from https://github.com/dotnet/corefx/commit/b867bfef3f7e3951b47134c75ebbaae0a5ca9dd3
2019-03-28 10:31:18 -07:00
Geoff Kizer 294a0381c5 add StreamState and rework HTTP2 stream state handling
cleanup


Commit migrated from https://github.com/dotnet/corefx/commit/1eba83637d47fde09c8e1748b0ebb4ca42da5ca4
2019-02-21 03:59:36 -08:00
Geoff Kizer 71d702c934 add GenericLoopbackServer and provide basic implementations for HTTP/1.1 and HTTP/2, and use in Cookie tests
Commit migrated from https://github.com/dotnet/corefx/commit/4fc6a75fce36fbbf7b551f25c121dde403b8f0f4
2019-02-07 16:55:26 -08:00
Geoff Kizer 34ca14c059 fix merge issues and some test cleanup
Commit migrated from https://github.com/dotnet/corefx/commit/340d2ac71afcbb6f9ea220e7549fcf8247995678
2019-02-06 14:02:20 -08:00
Geoff Kizer 43e41e9328 add basic GOAWAY tests and connection shutdown handling
Commit migrated from https://github.com/dotnet/corefx/commit/449a47ba2c6dbb568692d554787405dde7d14d8e
2019-02-06 14:01:45 -08:00
Geoff Kizer 741e216371 test fixes for various handlers and some additional tests
Commit migrated from https://github.com/dotnet/corefx/commit/d1c85401a2d9d727e4f87dab62277d569cbc09c5
2019-02-06 14:01:45 -08:00
Geoff Kizer 0714534ab3 make HTTP2 tests run for platform handler as well
Commit migrated from https://github.com/dotnet/corefx/commit/686bf6eb6973713f4845fbb874b53f81ea16e50b
2019-02-06 10:48:22 -08:00