Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Code Consistency and Clarity, Performance, and a Small Fix#48

Merged
MaxXor merged 5 commits intoquasar:masterfrom
yankejustin:master
Apr 8, 2015
Merged

Code Consistency and Clarity, Performance, and a Small Fix#48
MaxXor merged 5 commits intoquasar:masterfrom
yankejustin:master

Conversation

@yankejustin
Copy link
Copy Markdown
Contributor

Fixed a rather small memory leak with the Server Socket potentially not being disposed of correctly, fixed a loop in the Server's 'UPnP' class that only gave one chance for a valid end-point to be found, improved the consistency in some parts of the code, optimized both of the 'SafeQuickLZ' class's Compression method, and compacted the Builder Form's 'Build' method to improve speed and to reduce redundancy .

Made sure the server disposed of the Socket when Server.Listen(ushort)
is called if the Socket was created before (called Server.Listen(ushort)
previously but stopped listening).
If the endpoint was null, the loop would break anyways, not allowing up
to 5 retries (only got 1 try).
Made some code more consistent to the code in the solution.
Slightly improved performance for the SafeQuickLZ on the server and
client, code clean-up, and consistency improvements.
Compacted the validation on frmBuilder's btnBuild_Click(object,
EventArgs) method. This is a slight optimization, but it does help
remove the repetitive else statements.
MaxXor added a commit that referenced this pull request Apr 8, 2015
Code Consistency and Clarity, Performance, and a Small Fix
@MaxXor MaxXor merged commit c623880 into quasar:master Apr 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants