Use atomic type for connection count shared between threads
Use atomic type for connection count shared between threads

Even if this variable is only used in debug mode, it's still bad to have data
races on it, as it was the case (and reported by thread sanitizer) before.

shyblue/crow,shyblue/crow,ipkn/crow,shyblue/crow,ipkn/crow,ipkn/crow