Commit Graph

60 Commits

Author SHA1 Message Date
Maschell
ef9cc0e76e Update version string 2022-10-09 17:17:09 +02:00
Maschell
1375dbd4c2 Only shutdown the thread if it's actually running 2022-10-08 20:10:45 +02:00
Maschell
09412116ad Fix resuming file uploads 2022-10-08 17:21:32 +02:00
Maschell
d42c710156 Improve transfer speeds massively 2022-10-08 17:09:15 +02:00
Maschell
47b059cb48 Wait with thread cleanup until the thread has ended 2022-10-08 16:06:48 +02:00
Maschell
f5d6c3d508 Fix check for virtual dir in vrt_closedir to avoid calling closedir() with a virtual dir 2022-10-08 16:06:48 +02:00
Maschell
81707c4a30 Fix memory leak, the path is always allocated on the heap 2022-10-08 16:06:48 +02:00
Maschell
c6e9c29cd7 Reduce sleep time on error 2022-10-07 15:38:18 +02:00
Maschell
3f0d70cc4c Only unmounts devices if they were mounted before 2022-10-07 15:38:18 +02:00
Maschell
bba4877281 Revert lowering the priority 2022-10-07 15:38:18 +02:00
Maschell
6e2ea75917 Fix exiting 2022-10-06 23:19:52 +02:00
Maschell
258e93d01e Increase the sleep duration if no client is connected. 2022-10-06 19:04:28 +02:00
Maschell
48eac1549e Reduce priority to 17 2022-10-06 19:04:28 +02:00
Maschell
f399e97aa8 Use lock_guard and OSMemoryBarrier 2022-10-06 19:04:28 +02:00
Maschell
174d13339f Restart the server on error 2022-10-06 19:04:28 +02:00
Maschell
5da7be81b7 Retry creating passive_socket of error 2022-10-06 19:04:28 +02:00
Maschell
0968810796 Improve error handling for virtual paths 2022-10-06 19:04:28 +02:00
Maschell
4ac4e0a9a6 Init the virtual /fs/ and /fs/vol/ path properly 2022-10-06 19:04:28 +02:00
Maschell
50600d3d82 Always call shutdown for a socket 2022-10-06 19:04:28 +02:00
Maschell
52766cdca1 Stop the server in ON_APPLICATION_ENDS instead of ON_APPLICATION_REQUESTS_EXIT hook 2022-10-06 12:22:49 +02:00
Maschell
2a79fd7862 Fix potential softlock that could happen if the thread was canceled but is not (marked as) terminated 2022-10-06 12:22:49 +02:00
Maschell
9b64c3bb51 Only join the thread if it's not already terminated 2022-10-05 20:09:29 +02:00
Maschell
10838cfafb Make sure the server is destroyed when launching a title 2022-10-05 20:09:29 +02:00
Maschell
45ea7ac07e Do not hardcode the threadname in the CThread class 2022-10-05 20:09:29 +02:00
Vague Rant
6ca2bbda45 Correct line endings in FEAT response 2022-09-23 21:22:20 +02:00
Vague Rant
13e9c38512 Report UTF8 support to clients 2022-09-23 15:24:52 +02:00
Maschell
092142dffd Bump version 2022-09-19 21:51:41 +02:00
Maschell
0f61c1ecfb Add a config menu to enabled/disable the server, see the ip, and enabled/disable access to system files 2022-09-19 14:26:34 +02:00
Maschell
c40df1a909 Update the version and add support using the git hash on nightlies 2022-09-19 13:40:29 +02:00
Maschell
79522dc356 Fix displaying files/dirs with a broken date in some ftp clients 2022-09-06 12:18:46 +02:00
Maschell
21c34020a5 Update libraries 2022-09-04 10:33:48 +02:00
Maschell
acde083dcf Use libmocha instead of libiosuhax 2022-08-27 13:36:49 +02:00
Maschell
be2af9fdf0 Adjust logs to use a proper log-level 2022-05-14 19:54:27 +02:00
Maschell
ed72f45814 Update to logging macros to include the plugin name 2022-05-14 19:54:27 +02:00
Maschell
0b1f944a9a Fix displaying the permissions 2022-05-14 19:54:27 +02:00
Maschell
9269c548aa Formatting 2022-03-03 19:19:01 +01:00
Maschell
b8db1ca6a9 Only return strings from heap, never stack. Fixes access to "/" 2022-03-03 19:19:01 +01:00
Maschell
c0f4ed1863 Try to avoid use after free 2022-02-07 18:51:58 +01:00
Maschell
6b1ad4b64a Fix memory leaks 2022-02-07 18:51:58 +01:00
Maschell
0b57f21408 Add missing shudown call 2022-02-07 18:51:58 +01:00
Maschell
63f21d5a18 Format the code via clang-format 2022-02-04 14:36:55 +01:00
Maschell
5e6e8bdb53 Formatting and cleanup 2022-01-30 21:05:09 +01:00
Maschell
733b2189be Only do logging when built with make DEBUG=1 2022-01-30 20:57:11 +01:00
Maschell
aa8a313291 Give the thread a proper name 2022-01-30 20:52:32 +01:00
Maschell
209ef3d6a1 use WUPS 0.6.1 2021-10-02 11:22:10 +02:00
Maschell
9f784cbf1b Formatting and cleanup 2021-09-24 19:49:11 +02:00
Maschell
f4dd784456 Update Dockerfile 2021-09-24 19:41:27 +02:00
Maschell
dbff9ca577 Update Dockerfile to use WUPS 0.5 2021-09-17 16:53:11 +02:00
Maschell
dd28076063 Compile with latest wut, compile with WUPS 0.5 2021-04-17 14:20:41 +02:00
GaryOderNichts
71ee86025f Add virtual paths to MountVirtualDevices 2021-04-13 19:53:46 +02:00