Mark proxy connection free on error

This commit is contained in:
2023-01-05 22:29:28 +01:00
parent c7be0adc66
commit 993cb65724
3 changed files with 6 additions and 3 deletions

View File

@ -90,6 +90,7 @@ static proxy_ctx_t *proxy_get_by_conf(host_config_t *conf) {
n++;
}
// TODO use semaphore to keep track of number of free proxy connections
try_again:
if (sem_wait(&lock) != 0) {
if (errno == EINTR) {