Commit 941f500
authored
Add a handler for managing connections on the server (#1762)
Motivation:
Servers must manage connections created by clients. Part of this is
gracefully closing connections (by sending GOAWAY frames and ratcheting
down the last stream ID) in response to various conditions: the client
sending too many pings, the connection being idle too long, the
connection existing for longer than some configured limit, etc.
A previous change added a state machine which handles much of this
behaviour. This change adds a channel handler which builds on top of
that state machine.
Modifications:
- Add a channel handler for managing connections on the server.
Result:
We have a handler in place which can manage connections on the server.1 parent 1e36bdc commit 941f500
File tree
7 files changed
+955
-28
lines changed- Sources/GRPCHTTP2Core/Server/Connection
- Tests/GRPCHTTP2CoreTests
- Server/Connection
7 files changed
+955
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
| |||
Lines changed: 0 additions & 19 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
| 270 | + | |
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
| |||
320 | 319 | | |
321 | 320 | | |
322 | 321 | | |
323 | | - | |
| 322 | + | |
324 | 323 | | |
325 | 324 | | |
326 | 325 | | |
| |||
0 commit comments