smarthomeNG / smarthome

Device integration platform for your smart home
https://www.smarthomeNG.de
GNU General Public License v3.0
119 stars 92 forks source link

lib.network: introduce connect ratelimit #609

Closed Morg42 closed 6 months ago

Morg42 commented 6 months ago

Limit connection attempts if connection is closed immediately after connecting. At the moment, the limit is set to 1 try per second, and after 10 connection attempts hitting the rate limit, the connection attempts are canceled.

At the moment, this is only implemented for TcpClient(). The parameters can be set according to needs in the init call.