rbit / pydtls

Datagram Transport Layer Security for Python
Apache License 2.0
72 stars 45 forks source link

Add optional parameter to DtlsSocket: client_timeout (seconds) #14

Closed veganjay closed 7 years ago

veganjay commented 7 years ago

If client_timeout is specified, clients that have not communicated within the time frame will be dropped.

This is particularly useful for the situation where a DTLS client is abruptly terminated without proper shutdown of the DTLS socket, and later attempts to connect from the same UDP source port.