Hackney connection references in process dictionary

I am using poolboy to manage a pool of search workers.
Each search worker is a genserver and has a hackney connection in it’s state. For some reason, we’re getting a leak where hackney is keeping connections open. The search processes only have the one connection in the state, but can have quite a few connections in it’s process dictionary.

Here are main parts of the Search module.

Any ideas why we’d be getting a leak with connections staying open in the process library?

1 Like