'HttpMessageHandler cleanup cycle

In my .NET5 WebApi application, I am continuously getting below in the log:

[2022-03-07 13:34:34 DBG] Ending HttpMessageHandler cleanup cycle after 0.0348ms - processed: 0 items - remaining: 2 items
[2022-03-07 13:34:44 DBG] Starting HttpMessageHandler cleanup cycle with 2 items
[2022-03-07 13:34:44 DBG] Ending HttpMessageHandler cleanup cycle after 0.0064ms - processed: 0 items - remaining: 2 items
[2022-03-07 13:34:54 DBG] Starting HttpMessageHandler cleanup cycle with 2 items
[2022-03-07 13:34:54 DBG] Ending HttpMessageHandler cleanup cycle after 0.0031ms - processed: 0 items - remaining: 2 items
[2022-03-07 13:35:04 DBG] Starting HttpMessageHandler cleanup cycle with 2 items
[2022-03-07 13:35:04 DBG] Ending HttpMessageHandler cleanup cycle after 0.0044ms - processed: 0 items - remaining: 2 items
[2022-03-07 13:35:14 DBG] Starting HttpMessageHandler cleanup cycle with 2 items
[2022-03-07 13:35:14 DBG] Ending HttpMessageHandler cleanup cycle after 0.0121ms - processed: 0 items - remaining: 2 items
[2022-03-07 13:35:24 DBG] Starting HttpMessageHandler cleanup cycle with 2 items

This continues to happen, sometimes endlessly. Seems it's a cleanup cycle and takes up to long minutes to finish. Can anyone help me to understand why this is happening? and how to resolve it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source