FubarDevelopment / FtpServer

Portable FTP server written in .NET
http://fubardevelopment.github.io/FtpServer/
MIT License
473 stars 161 forks source link

ActiveConnections Counter is not thread Safe #68

Closed sparkie79 closed 5 years ago

sparkie79 commented 5 years ago

ActiveConnections Counter for limiting the number o active connectionsto MaxActiveConnections is not thread safe

https://csharp.2000things.com/2014/05/20/1100-increment-and-decrement-operators-are-not-thread-safe/

Multiple connection closed in the same instant can lead to incorrect active connection count

fubar-coder commented 5 years ago

Fixed in 3.0.0-rc.2