Commit Graph

41 Commits

Author SHA1 Message Date
MaxXor 70618e91cb Improved memory management in server
- Fixed handling packets wih payload bigger than the buffersize of the
receiving socket
- Added locks to FileSplit class
2015-06-07 16:28:33 +02:00
MaxXor 3bdd5aa294 Implemented pooled buffer manager to socket 2015-06-05 23:07:37 +02:00
MaxXor 836b77d13e Improved check for illegal chars in path 2015-06-01 18:50:20 +02:00
MaxXor dbd95e4398 UPnP fix 2015-05-26 22:13:11 +02:00
d3agle 7e13fa080e small behavior fix #213 update 2015-05-26 14:55:23 -05:00
MaxXor a18e799f9a Merge pull request #162 from MaxXor/pr/161
Code Improvements
2015-05-21 20:55:15 +02:00
MaxXor 4fe601a87b Small changes to code 2015-05-21 20:35:57 +02:00
yankejustin 9e175378fc Must use static readonly instead of const
Instead of using const, we must use static readonly...
2015-05-21 12:23:54 -04:00
yankejustin 8cbab66bf8 Forgot to initialize const string array 2015-05-21 12:20:45 -04:00
yankejustin 21261270d8 Moved string array to class-level
Moved string array for file size units to a class-level const string
array for performance.
2015-05-21 12:14:41 -04:00
yankejustin 8b20dee5e1 More meaningful exceptions
FileSplit provides more meaningful exceptions.
2015-05-21 12:12:02 -04:00
DragonzMaster 88f67c717a Small Change to Reverse Proxy
Changing the way was used to calculate send/received data by reverse
proxy
-This change will view the value with decimal point (2 num) to make the
values more accurate
-Changing the func name used from "GetFileSize" to "GetDataSize" ( Found
in xServer.Core.Helper )
2015-05-19 22:17:03 +02:00
MaxXor 8866103318 Reformatted UnsafeStreamCodec 2015-05-18 18:07:22 +02:00
yankejustin af20dd54e3 Disposing IDisposable Resources
Dispose of unmanaged resources used by the server's UnsafeStreamCodec
and JpgCompression (because it is pretty related to the
UnsafeStreamCodec). Made sure that the UnsafeStreamCodec was being
disposed of before being re-assigned.
Note: I did not reflect these changes to the client's UnsafeStreamCodec
because the implementation of the client's codec is a bit different in
the CommandHandler. This different implementation caused instability in
the client. In the server, I noticed decreased memory consumption and
decreased fluctuation in the memory used.
2015-05-18 01:10:25 -04:00
yankejustin af591e1d3a Formatted code of UnsafeStreamCodec
Formatted the code for UnsafeStreamCodec for readability and consistency
with the rest of the code in the program.
2015-05-18 00:37:12 -04:00
yankejustin d1e04a98a8 Removed clearing of local lists + setting to null
Setting objects to null would be optimized out. Clearing lists probably
would not be optimized out. There is no need to explicitly clear a list
of items or setting objects to null in C#. We must let the Garbage
Collector have its way.
2015-05-17 23:58:08 -04:00
yankejustin 95a271554b Removed unnecessary comment
Removed commented-out (archived) code.
2015-05-17 23:54:40 -04:00
yankejustin ab19a9fbef Make the lock readonly
Made the lock for the codec readonly. This makes it impossible for a
spot (excluding constructors) from touching the lock. Tampering with the
lock means that, if something acquires the lock and enters critical
code, the lock can be changed and the critical code's thread safety can
be violated.
2015-05-17 23:24:13 -04:00
MaxXor e50ea69d43 Fixed crash when downloading files over 2MB (#75) 2015-05-05 09:19:08 +02:00
MaxXor b1f6ba7ffd Correctly read and append blocks 2015-04-29 22:00:02 +02:00
MaxXor df5ce2f893 Fixed code formatting
Replaced all tabs in code with 4 spaces and did some general renaming.
2015-04-21 20:27:52 +02:00
MaxXor 3237a80924 Closed #60 2015-04-14 20:42:48 +02:00
yankejustin 295daca123 Some code consistency improvements
Made some code more consistent to the code in the solution.
2015-04-07 12:46:14 -04:00
yankejustin 8ecd568acf Fixed the loop that attempts to forward a port
If the endpoint was null, the loop would break anyways, not allowing up
to 5 retries (only got 1 try).
2015-04-07 12:38:34 -04:00
MaxXor 5d20aad9d6 Fixed File Download in File Manager (#36) 2015-04-04 17:22:20 +02:00
MaxXor d140ca438e Improved Remote Desktop
- Added ability to change quality of remote desktop
- Fixed another cross threading crash
2015-04-02 10:26:57 +02:00
MaxXor 2a157a4df0 Cleanup 2015-03-31 22:37:38 +02:00
DragonHunter 5e3e2704f6 Probably fixed Remote Desktop Memory Leak
Probably fixed Remote Desktop Memory Leak, needs more testing but
overall stays between 50-100MB
Added UnsafeStreamCodec
2015-03-31 20:38:16 +02:00
MaxXor 763de6a86c Faster creation of random file names 2015-03-21 19:14:00 +01:00
MaxXor 76ca01a420 Minor null reference fix 2015-03-18 18:12:45 +01:00
yankejustin c6b57f8110 Dispose of the memory stream in Helper class
Disposes of the memory stream created in the server's helper class that
converts an image.
2015-03-17 18:35:53 -04:00
yankejustin 79f9ca0cba Made sure the TcpClient will always kill itself
Placed TcpClient in a try-finally to make sure it will never linger if
it (likely) cannot connect successfully.
2015-03-17 18:30:12 -04:00
yankejustin 7fd83c87be Removed label to increase readability
Removed a label and implemented a more-common do-while loop for retry
functionality.
2015-03-17 18:22:09 -04:00
MaxXor ace4449c02 More code cleanup 2015-01-14 13:15:31 +01:00
MaxXor 2544f3a230 Refactored class access modifiers 2015-01-13 19:43:55 +01:00
MaxXor e3ad2f0716 Refactored namespace 2015-01-13 19:29:11 +01:00
MaxXor cc825fabb2 Close port on exit (UPnP) 2014-07-30 16:34:42 +02:00
MaxXor a0ca489717 Adjusted some changes to xRAT 2014-07-30 15:08:03 +02:00
187Final ceffc3a4e3 UPnP
added UPnP
2014-07-30 07:03:00 -05:00
MaxXor 177b232d7f Fixed changelog 2014-07-27 18:38:29 +02:00
MaxXor 034b6242f4 Initial commit with everything else 2014-07-08 14:58:53 +02:00