Johannes Schmidt
82bb636d2b
Use WaitGroup to wait for or abort HTTP requests
...
The wait group gets passed to HttpServerConnection, then down to the
HttpHandlers. For those handlers that modify the program state, the
wait group is locked so ApiListener will wait on Stop() for the
request to complete. If the request iterates over config objects,
a further check on the state of the wait group is added to abort early
and not delay program shutdown. In that case, 503 responses will be
sent to the client.
Additionally, in HttpServerConnection, no further requests than the
one already started will be allowed once the wait group is joining.
2025-06-13 14:48:15 +02:00
..
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-03-18 11:22:56 +01:00
2025-03-18 11:22:56 +01:00
2025-03-18 11:22:56 +01:00
2025-03-18 11:22:56 +01:00
2025-05-23 10:44:16 +02:00
2025-05-21 11:36:32 +02:00
2023-02-01 12:29:47 +01:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2021-07-27 21:57:02 +02:00
2023-05-17 18:05:13 +02:00
2019-02-25 14:48:22 +01:00
2020-10-09 20:15:44 +02:00
2024-08-23 12:49:09 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2024-06-13 11:26:19 +02:00
2024-06-13 11:26:19 +02:00
2024-12-17 18:33:05 +01:00
2022-11-28 16:39:16 +01:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2022-03-30 09:42:22 +02:00
2022-03-30 09:42:22 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2021-02-03 09:54:57 +01:00
2020-10-19 13:04:20 +02:00
2025-05-21 11:36:32 +02:00
2025-03-18 11:22:56 +01:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-04-22 13:55:49 +02:00
2022-11-28 14:50:54 +01:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2020-12-22 16:27:38 +01:00
2019-05-24 15:50:43 +02:00
2019-02-25 14:48:22 +01:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2022-02-22 17:51:43 +01:00
2019-10-21 16:12:35 +02:00
2023-05-17 18:05:13 +02:00
2025-01-30 17:45:27 +01:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2023-05-17 18:05:13 +02:00
2019-06-07 10:33:55 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2019-02-25 14:48:22 +01:00
2025-04-22 13:55:49 +02:00
2019-02-25 14:48:22 +01:00
2025-06-13 14:48:15 +02:00
2025-06-13 14:48:15 +02:00
2025-05-21 14:26:47 +02:00
2025-04-23 15:18:06 +02:00
2022-09-09 18:26:28 +02:00