David Nadoba
b479afe4c8
Fix bug in migration from HTTP1 to HTTP2 and back to HTTP1 ( #486 )
2021-11-22 12:33:57 +01:00
Fabian Fett
2fe3f42fee
Crash fix: HTTP2Connections emit events after the pool has closed them. ( #481 )
2021-11-19 12:33:08 +01:00
David Nadoba
18a58bb874
[HTTP2] Improve performance of backoff timer done event ( #464 )
2021-11-03 14:29:24 +00:00
David Nadoba
149b8d2656
[HTTP2] Integrate HTTP2StateMachine into HTTPConnectionPool.StateMachine ( #462 )
2021-11-02 11:51:18 +00:00
David Nadoba
4147fd647d
[HTTP2] Create new connections during migration if needed ( #459 )
2021-10-27 18:28:51 +02:00
David Nadoba
c1a60d8aa4
[HTTP2] Prepare migration actions ( #456 )
2021-10-13 17:11:04 +02:00
Cory Benfield
1081b0b054
Don't crash when hitting long backoffs. ( #458 )
...
Motivation:
If we backoff sufficiently far we can overflow Int64, which will cause
us to crash.
Modifications:
Clamp the backoff value before we convert to Int64.
Results:
No crashes!
2021-10-13 13:09:54 +01:00
David Nadoba
a0b09857d8
[HTTP2StateMachine] test and fix HTTP2 go away ( #452 )
2021-10-05 13:59:09 +02:00
David Nadoba
a57c4b309c
[HTTP2ConnectionPool] added HTTP2StateMachine ( #447 )
2021-10-05 11:19:41 +02:00
David Nadoba
96963810cb
[HTTP2Connections] Return if connection was idle before lease ( #451 )
2021-10-02 14:06:13 +02:00
Fabian Fett
a6ca288e18
[HTTPConnectionPool] StateMachine has explicit function for HTTP1 connection close ( #448 )
2021-10-01 12:50:13 +02:00
David Nadoba
e4e233a2b1
remove umbrella NIO imports and add soundness check ( #446 )
2021-09-29 17:42:42 +02:00
David Nadoba
628b942522
prepare calculateBackoff(failedAttempt:) to be used in HTTP2StateMachine ( #445 )
2021-09-29 16:43:10 +02:00
David Nadoba
88d47f12ca
[HTTP2ConnectionPool] added HTTP2Connections struct ( #440 )
...
One step closer to support HTTP/2 in the new connection pool.
`HTTP2Connections` will be used in a new `HTTP2StateMaschine` in a follow up PR.
2021-09-28 12:06:54 +02:00
Fabian Fett
0c36de21d6
HTTPConnectionPool timeout requests: preserve connection errors
...
If a request times out because no connection could be attained, we should fail the request with the last connection creation error. If no connection creation error is present and there is no active connection, we fail the request with a connectTimeout error.
2021-09-13 18:22:29 +02:00
Fabian Fett
7bb58e536c
Fix a race between shutdown and backoff timer ( #419 )
2021-09-09 17:01:07 +02:00
Fabian Fett
4d726bad8d
Add ConnectionPool HTTP1StateMachine ( #416 )
2021-09-09 15:34:03 +02:00
Fabian Fett
05e570dd87
Add MockTools for testing HTTP1ConnectionPool.StateMachine ( #417 )
...
Co-authored-by: Cory Benfield <lukasa@apple.com >
2021-09-08 17:45:09 +02:00
Fabian Fett
7d3c578472
HTTP1Connections state machine for ConnectionPool ( #413 )
...
Co-authored-by: George Barnett <gbarnett@apple.com >
2021-09-06 12:56:20 +02:00
Fabian Fett
1f5b633457
Add a RequestQueue for the ConnectionPool ( #412 )
2021-09-01 13:55:06 +02:00