Velocity icon indicating copy to clipboard operation
Velocity copied to clipboard

Velocity server change issue

Open ZuRiKanHD opened this issue 7 months ago • 7 comments

Expected Behavior

If Velocity is supposed to connect a player to another server, the player will be disconnected from the server they were previously on.

Actual Behavior

With the new build (491), Velocity doesn't disconnect from the old server, so the old server only disconnects after a timeout. This ensures that HuskSync, for example, doesn't detect the server change, and thus, synchronization of inventory, Enderchest, and so on isn't possible. While the player is active on the other server when switching servers, the previous server doesn't know that the connection has been lost and eventually times out.

Steps to Reproduce

See console log of the server to be left when changing servers

Plugin List

Velocity Version

Additional Information

No response

ZuRiKanHD avatar Apr 10 '25 08:04 ZuRiKanHD

Also experiencing this

bridgelol avatar Apr 10 '25 18:04 bridgelol

Can you reproduce without plugins?

electronicboy avatar Apr 10 '25 18:04 electronicboy

I can confirm that I also had this problem with build 491 (ref #1380). Switching back to build 490 fixed the problem.

@electronicboy It's also reproducible without plugins if you use /server to switch to another server. You will see {username} lost connection: Timed out in the logs of the previous server, and other players will see the disconnected player until the timeout.

Krymonota avatar Apr 10 '25 19:04 Krymonota

It's related to the following commit: https://github.com/PaperMC/Velocity/commit/a549880df1a7454799d30be57b9b7df4cb5c43b7

Without, it all works the way it should

bridgelol avatar Apr 10 '25 23:04 bridgelol

I think I know why this happening, but I need to see logs. There's already #1546 that's connected to io_uring. I'll disable its use for now.

astei avatar Apr 11 '25 04:04 astei

I will also mention, it might be a coincidence but we only experience trouble on proxies running on AMD CPUs, intel (i9-14900k) does not give us the same issue

bridgelol avatar Apr 11 '25 14:04 bridgelol

I can confirm that I also had this problem with build 491 (ref #1380). Switching back to build 490 fixed the problem.

@electronicboy It's also reproducible without plugins if you use /server to switch to another server. You will see {username} lost connection: Timed out in the logs of the previous server, and other players will see the disconnected player until the timeout.

I will also mention, it might be a coincidence but we only experience trouble on proxies running on AMD CPUs, intel (i9-14900k) does not give us the same issue

is that literally AMD issue?

LoyalPineapple avatar Jun 20 '25 23:06 LoyalPineapple

I'm still encountering the same issue while using velocity-3.4.0-SNAPSHOT-514. From time to time, when players switch servers, the disconnect event doesn't get triggered properly on the original server.

Is there any solution to this problem?

tygh89071388 avatar Jun 24 '25 12:06 tygh89071388

I'm still encountering the same issue while using velocity-3.4.0-SNAPSHOT-514. From time to time, when players switch servers, the disconnect event doesn't get triggered properly on the original server.

Is there any solution to this problem?

What is your CPU also what plugins do you use for player data transfer?

LoyalPineapple avatar Jul 08 '25 19:07 LoyalPineapple

I'm still encountering the same issue while using velocity-3.4.0-SNAPSHOT-514. From time to time, when players switch servers, the disconnect event doesn't get triggered properly on the original server. Is there any solution to this problem?

What is your CPU also what plugins do you use for player data transfer?

AMD9950X husksync

tygh89071388 avatar Jul 09 '25 08:07 tygh89071388

I'm still encountering the same issue while using velocity-3.4.0-SNAPSHOT-514. From time to time, when players switch servers, the disconnect event doesn't get triggered properly on the original server.

Is there any solution to this problem?

Al parecer lo solucionaron en SNAPSHOT-#536 verificare su funcionamiento.

Maximan2233 avatar Oct 02 '25 22:10 Maximan2233