uhub/src
Jan Vidar Krey cff10910ad Issue 72: Improve ghost user detection
uhub has the ability to disconnect a 'ghost' user, e.g. if a user
reconnects then uhub will kick the existing user if it is still there.
However, this could also be triggered abusively by having two "tabs" or windows
connect at the same time from the same client. The process of connecting a new
client is rather expensive because it triggers a lot of updates on all connections.

With this change, uhub will only attempt to disconnect the existing client if
it is marked with the "flag_choke" flag, which indicates that messages must be
dropped simply because the client is not accepting data fast enough. This will
cause the new connection to fail because the user is already logged in.

This can be further improved by adding a timestamp for when the connection
previously was provable working. Which is possibly a better and more reliable
way of detecting ghost users.
2019-12-01 13:16:28 +01:00
..
adc Secure URLs: http --> https (part 2) 2019-04-23 15:59:03 +02:00
core Issue 72: Improve ghost user detection 2019-12-01 13:16:28 +01:00
network Add statistics about OpenSSL events such as handshakes, closes and errors. 2019-06-18 15:59:22 +02:00
plugin_api Secure URLs: http --> https (part 2) 2019-04-23 15:59:03 +02:00
plugins Secure URLs: http --> https (part 2) 2019-04-23 15:59:03 +02:00
tools Secure URLs: http --> https (part 2) 2019-04-23 15:59:03 +02:00
util Secure URLs: http --> https (part 2) 2019-04-23 15:59:03 +02:00
system.h.in Secure URLs: http --> https (part 2) 2019-04-23 15:59:03 +02:00
uhub.h Secure URLs: http --> https (part 2) 2019-04-23 15:59:03 +02:00
version.h.in Secure URLs: http --> https (part 2) 2019-04-23 15:59:03 +02:00