phaistos-networks / TANK

A very high performance distributed log service
Apache License 2.0
938 stars 70 forks source link

GC inactive connections #62

Closed markpapadakis closed 5 years ago

markpapadakis commented 5 years ago

We will track all inactive connections in a doubly-linked list so that if open(), socket(), accept4(), etc fail with ENFILE or EMFILE, we will close 1 or more inactive connections and try again. We will also make sure that connections idle for too long are terminated to reduce resources pressure.

markpapadakis commented 5 years ago

Implemented in the latest commit.