google / certificate-transparency

Auditing for TLS certificates.
https://certificate.transparency.dev
Apache License 2.0
869 stars 283 forks source link

Fix thread starvation in case all threads from internal pool process add-chain/add-pre-chain request #1417

Closed knikolov82 closed 6 years ago

knikolov82 commented 7 years ago

We need to create internal pool with at least double of http server threads, in order to avoid thread starvation. The issue occurs when all threads from internal pool are processing add-chain request, as during processing additional thread from internal pool is needed for each request for adding pending entry to etcd server.