[GH-ISSUE #579] Inconsistent connection states #338

Open
opened 2026-02-27 15:49:56 +03:00 by kerem · 1 comment
Owner

Originally created by @chico-depressive on GitHub (Jan 18, 2017).
Original GitHub issue: https://github.com/quasar/Quasar/issues/579

else if (type == typeof(ServerPackets.DoClientDisconnect))
            {
                Program.ConnectClient.Exit(); 
            }
            else if (type == typeof(ServerPackets.DoClientReconnect))
            {
                Program.ConnectClient.Disconnect();
            }

disconnecting = exit and reconnect = disconnect?
providing a disconnecting without exiting should be a good idea

Originally created by @chico-depressive on GitHub (Jan 18, 2017). Original GitHub issue: https://github.com/quasar/Quasar/issues/579 ``` else if (type == typeof(ServerPackets.DoClientDisconnect)) { Program.ConnectClient.Exit(); } else if (type == typeof(ServerPackets.DoClientReconnect)) { Program.ConnectClient.Disconnect(); } ``` disconnecting = exit and reconnect = disconnect? providing a disconnecting without exiting should be a good idea
Author
Owner

@yankejustin commented on GitHub (Mar 21, 2017):

Referencing these lines of code.

The way those lines work goes like this: the client will reset its state and disconnect things like clients from the reverse proxy. An internal value is still held to make sure that the client will automatically reconnect. By the lack of comment and the naming of the method, I can see why that would be confusing to read in the code.

<!-- gh-comment-id:288075225 --> @yankejustin commented on GitHub (Mar 21, 2017): Referencing <a href="https://github.com/quasar/QuasarRAT/blob/64cb0e5f837954be59b484b42744661805b0a837/Client/Core/Packets/PacketHandler.cs#L22-L29">these lines</a> of code. The way those lines work goes like this: the client will reset its state and disconnect things like clients from the reverse proxy. An internal value is still held to make sure that the client will <i>automatically</i> reconnect. By the lack of comment and the naming of the method, I can see why that would be confusing to read in the code.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Quasar#338
No description provided.