Branch: refs/heads/master Home: https://github.com/ngircd/ngircd Commit: 879d5504081e09600464f503db8282e47f79abaa https://github.com/ngircd/ngircd/commit/879d5504081e09600464f503db8282e47f79... Author: Alexander Barton alex@barton.de Date: 2017-01-19 (Thu, 19 Jan 2017)
Changed paths: M src/ngircd/conn.c
Log Message: ----------- Fix handling of connection pool allocation and enlargement
The daemon only enlarged its connection pool when accepting new client connections, not when establishing new outgoing server links.
Thanks to Lukas Braun (k00mi) for reporting this!
In addition this patch streamlines the connection pool allocation, so that there is only one place in the code allocating the pool: the now updated Socket2Index() function. The name doesn't quite fit, but this existing and today quite useless function (because the mapping from socket number to connection index is 1:1 today) already became called in almost all relevant code paths, so I decided to reuse it to keep the patch small ...probably we want to fix the naming in a second patch?
Closes #231.
ngircd-commits@lists.barton.de