Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Websocket connections do not get deleted #117

Closed
showierdata9978 opened this issue Nov 8, 2022 · 11 comments · Fixed by #159
Closed

Websocket connections do not get deleted #117

showierdata9978 opened this issue Nov 8, 2022 · 11 comments · Fixed by #159
Assignees
Labels
bug Something isn't working CloudLink related For issues specific to the Cloudlink protocol. URGENT An urgent EMERGENCY.

Comments

@showierdata9978
Copy link
Member

showierdata9978 commented Nov 8, 2022

When a client disconnects, there is a chance for the socket handler to not cause on close, so cloudlink is unable to delete the clients websocket connection.

In meower, this leads to always online (until restart) users or bots. Where the user or bot is unable to login to there account. Meower returns a internal error

When a socket is not deleted and you try to interact with it, it raises an error saying the client is closed.

Possible fix:
Catch the error and delete the client object and update ulist

@showierdata9978 showierdata9978 added bug Something isn't working CloudLink related For issues specific to the Cloudlink protocol. Server-side URGENT An urgent EMERGENCY. labels Nov 8, 2022
@MikeDev101
Copy link
Contributor

This is a design flaw with Cloudlink 3's underlying websocket framework.

We are continuing to make strides towards the CL4 port. With CL4 utilizing a radically different underlying websocket framework, this issue is of less concern.

On top of that, this issue is of extremely low probability of ever occurring, and (even if it does) you can always reconnect and try again.

Marking as won't fix, since this will be automatically rectified in the CL4 port.

@MikeDev101 MikeDev101 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2022
@showierdata9978
Copy link
Member Author

showierdata9978 commented Nov 8, 2022

i have an account stuck in this state. CodeBot, try interacting with it. the only way to clear it is restarting the server

This is essentially like banning a user, but they cant be unbanned

the problem is that with the meower server, YOU CAN NOT RECONNECT.

@showierdata9978
Copy link
Member Author

i was also planning on fixing this myself, should be clear because i self assigned

@JoshAtticus
Copy link
Member

JoshAtticus commented Feb 17, 2023

This is a design flaw with Cloudlink 3's underlying websocket framework.

Yeah, we know CL3 has issues, but that's no excuse not to fix them

We are continuing to make strides towards the CL4 port. With CL4 utilizing a radically different underlying websocket framework, this issue is of less concern.

Or will it, have you tested?

On top of that, this issue is of extremely low probability of ever occurring, and (even if it does) you can always reconnect and try again.

You can't just reconnect, because the session is still there

Marking as won't fix, since this will be automatically rectified in the CL4 port.

But you haven't tested, how would you know

(from @showierdata9978)
i was also planning on fixing this myself, should be clear because i self assigned

exactly this

Also you're only harming yourself and bot devs by not fixing this, more and more bot accounts and user accounts are getting glitched by this bug, Amethyst, the biggest bot project for Meower, had their account glitched, and when it was recreated with a new name, people thought it was an impersonation, and just stopped using it, meaning less activity, and less users.

@tnix100
Copy link
Member

tnix100 commented Feb 17, 2023

huh, I'm re-opening this because yeah it's an issue

but @JoshAtticus this will be rectified in CL4 port anyway because CL4 allows multiple clients from a single user and has a much more reliable underlying websocket server

@tnix100 tnix100 reopened this Feb 17, 2023
@showierdata9978
Copy link
Member Author

And il go fix it
RIGHT NOW

@JoshAtticus
Copy link
Member

huh, I'm re-opening this because yeah it's an issue

but @JoshAtticus this will be rectified in CL4 port anyway because CL4 allows multiple clients from a single user and has a much more reliable underlying websocket server

But if it does happen in CL4, then accounts will still work, but you'll have a bunch of ghost connections that don't actually exist.

@tnix100
Copy link
Member

tnix100 commented Feb 17, 2023

huh, I'm re-opening this because yeah it's an issue
but @JoshAtticus this will be rectified in CL4 port anyway because CL4 allows multiple clients from a single user and has a much more reliable underlying websocket server

But if it does happen in CL4, then accounts will still work, but you'll have a bunch of ghost connections that don't actually exist.

well, yeah, it'll basically be a memory-leak but it won't affect anything

and if we spot a memory-leak then we'll need to fix it

@showierdata9978
Copy link
Member Author

thats basicly what this is

@showierdata9978
Copy link
Member Author

mb.py alerted me that this issue is still kicking around

Screenshot_20230413-143244

https://github.com/meower-community/MeowerBot.py/blob/master/MeowerBot/Bot.py#L207

@MikeDev101 MikeDev101 linked a pull request Apr 13, 2023 that will close this issue
@tnix100
Copy link
Member

tnix100 commented Aug 14, 2024

This has been resolved.

@tnix100 tnix100 closed this as completed Aug 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working CloudLink related For issues specific to the Cloudlink protocol. URGENT An urgent EMERGENCY.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants