Yonas Habteab 5c0f9bfdaa HttpServerConnection: Don't spawn useless coroutines
Currently, for each `Disconnect()` call, we spawn a coroutine, but every
one of them is just usesless, except the first one. However, since all
`Disconnect()` usages share the same asio strand and cannot interfere
with each other, spawning another coroutine within `Disconnect()` isn't
even necessary. When a coroutine calls `Disconnect()` now, it will
immediately initiate an async shutdown of the socket, potentially causing
the coroutine to yield and allowing the others to resume. Therefore, the
`m_ShuttingDown` flag is still required by the coroutines to be checked
regularly.
2024-11-14 16:47:01 +01:00
..
2023-05-17 18:05:13 +02:00
2023-05-17 18:05:13 +02:00
2021-02-03 09:54:57 +01:00
2021-02-03 09:54:57 +01:00
2020-10-19 13:04:20 +02:00
2023-05-17 18:05:13 +02:00
2023-05-17 18:05:13 +02:00
2023-05-17 18:05:13 +02:00
2023-05-17 18:05:13 +02:00
2023-05-17 18:05:13 +02:00
2023-05-17 18:05:13 +02:00