Cory Benfield
9a8553e8aa
Correctly close the connection if sendEnd fails ( #599 )
...
Motivation
If we receive an early HTTP response, the last action on a HTTP/1.1
connection is to send the .end message. While we had an error handling
path in the code, it wasn't tested, and when executed it would end up
leaking the connection by failing to close it _or_ return it to the
pool.
This patch fixes the issue by appropriately terminating the connection
and adding a test.
Modifications
Add a test
Terminate the connection if sendEnd fails
Result
Fewer connection leaks
2022-06-17 17:09:19 +01:00
..
2022-04-26 16:04:54 +02:00
2022-02-07 11:36:53 +01:00
2022-02-07 11:36:53 +01:00
2021-12-17 16:08:24 +01:00
2021-08-19 21:11:49 +02:00
2022-06-17 17:09:19 +01:00
2022-06-17 17:09:19 +01:00
2022-06-17 12:27:03 +01:00
2022-01-24 12:07:41 +00:00
2021-12-06 18:31:32 +01:00
2021-11-10 13:33:38 +01:00
2021-08-19 21:11:49 +02:00
2021-06-28 13:17:33 +02:00
2022-02-22 13:59:54 +01:00
2022-02-22 13:59:54 +01:00
2022-02-10 10:42:27 +01:00
2022-02-10 10:42:27 +01:00
2022-06-01 14:13:47 +01:00
2021-07-22 18:30:37 +02:00
2022-04-11 16:24:57 +02:00
2022-04-11 16:24:57 +02:00
2022-06-01 14:13:47 +01:00
2021-06-18 13:02:58 +01:00
2022-01-06 16:40:55 +00:00
2022-01-06 16:40:55 +00:00
2021-11-10 13:33:38 +01:00
2021-11-10 13:33:38 +01:00
2022-06-01 14:13:47 +01:00
2022-01-06 16:40:55 +00:00
2022-06-01 14:13:47 +01:00
2022-06-01 14:13:47 +01:00
2022-01-14 14:35:17 +01:00
2021-12-06 10:53:42 +01:00
2022-06-17 12:27:03 +01:00
2022-06-17 12:27:03 +01:00
2022-06-17 12:27:03 +01:00
2021-11-11 11:02:54 +01:00
2021-11-11 11:02:54 +01:00
2022-06-01 14:13:47 +01:00
2021-06-28 13:17:33 +02:00
2021-11-22 12:33:57 +01:00
2021-11-22 12:33:57 +01:00
2021-10-13 17:11:04 +02:00
2021-09-13 18:22:29 +02:00
2021-11-19 12:33:08 +01:00
2021-11-19 12:33:08 +01:00
2021-12-17 14:44:11 +01:00
2021-12-17 14:44:11 +01:00
2021-09-29 17:42:42 +02:00
2021-09-10 17:25:41 +02:00
2021-09-21 10:04:17 +02:00
2021-09-01 13:55:06 +02:00
2021-10-13 17:11:04 +02:00
2021-10-13 13:09:54 +01:00
2021-10-13 13:09:54 +01:00
2022-04-26 16:04:54 +02:00
2022-04-26 16:04:54 +02:00
2021-05-13 12:16:52 +01:00
2021-05-13 12:16:52 +01:00
2022-04-12 13:40:16 +02:00
2022-04-12 13:40:16 +02:00
2022-01-14 14:35:17 +01:00
2021-11-23 10:22:57 +01:00
2021-08-19 21:11:49 +02:00
2021-06-28 13:17:33 +02:00
2021-11-26 00:22:37 +01:00
2021-08-19 21:11:49 +02:00
2021-05-13 15:11:49 +01:00
2021-08-19 21:11:49 +02:00
2021-06-28 13:17:33 +02:00
2021-12-17 16:08:24 +01:00
2021-12-17 09:36:41 +01:00
2022-04-22 10:47:30 +02:00
2021-12-09 18:04:01 +01:00
2021-12-17 16:08:24 +01:00