TheRealRedRiver559 / Asyncio-IRC

TCP chat server I'm working on.
MIT License
8 stars 2 forks source link

Client not being removed on local network change #8

Closed TheRealRedRiver559 closed 1 year ago

TheRealRedRiver559 commented 1 year ago

This is an unknown silent error currently. If a client is logged in and swaps their wifi connection, by using a VPN, proxy, or just a turning off and on their wifi it will cause some sort of error. The client side shows the exception but the server does not. Some how the client is not being removed from the clients list in Temp.py when this happens and is capable of storing a "n" number of un used or blocked usernames that you cant log back in with.

TheRealRedRiver559 commented 1 year ago

I will have to add a keep-alive / heartbeat system to the client and server. This way I can also implement a ping system and work on the client format as well. I will implement this in a week or so. I have finals

TheRealRedRiver559 commented 1 year ago

Fixed, I fixed this when fixing the time issue. I added heart beat messages to check every 5 seconds if the server never got a FIN packet / datagram / etc.