Commit Graph

54 Commits

Author SHA1 Message Date
JustArchi
54a20246db Use CrossProcessFileBasedSemaphore exclusively
Our reference implementation actually doesn't release the wait handle on process exit, which defeats the purpose. Use file-based semaphore on all OSes as it works reliably.
2020-06-15 23:28:52 +02:00
JustArchi
7930a652dd Correct UnixSetFileAccess to allow chmoding a directory 2020-05-24 00:17:36 +02:00
JustArchi
5a2caab7fc Use MD5 for single instance path 2020-05-22 00:04:04 +02:00
JustArchi
8db90b6c2f Use hexadecimal strings for OS-wide resources
base64 slash character can cause problems with filepaths, besides, it's best to use ASCII only there due to various OS limitations
2020-05-21 23:42:32 +02:00
JustArchi
0f1b3f05f9 Implement CrossProcessFileBasedSemaphore in place of CrossProcessMutexBasedSemaphore
Hopefully this one works better
2020-05-21 23:02:04 +02:00
JustArchi
0fe0e1a84d Disable cross-process semaphore on Linux for now 2020-05-21 10:51:57 +02:00
JustArchi
6c22724835 Implement OS-wide, cross-process semaphores for ASF instances
Distinction is preserved on webproxy basis (even for LoginLimiter which shouldn't work like that)

Addresses crucial part of #1798
2020-05-20 22:01:29 +02:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
d11603c74b Extract ProcessFileName for re-use 2019-12-08 00:32:59 +01:00
JustArchi
1c809ffb13 Misc cleanup 2019-12-08 00:26:41 +01:00
JustArchi
4050e6eb60 Closes #1289 2019-06-23 01:06:11 +02:00
JustArchi
64b379f4a2 Misc 2019-06-20 13:52:19 +02:00
JustArchi
f4a21ce20c Misc 2019-06-18 14:48:06 +02:00
JustArchi
42e5a99225 Misc
No need to fiddle with Linux console anyway, since it's UTF-8 already (and we can't change it even if it isn't)
2019-06-02 14:39:16 +02:00
JustArchi
da16086119 Misc 2019-06-02 14:29:26 +02:00
JustArchi
75ca05830a Fix linux console 2019-06-02 00:05:06 +02:00
JustArchi
b98268a465 R# cleanup, small code improvements 2019-05-19 15:38:06 +02:00
JustArchi
c8e6ec6870 Correct mutex release 2019-03-30 21:00:41 +01:00
JustArchi
07b8978866 Limit ASF to a single instance per directory 2019-03-29 23:07:06 +01:00
JustArchi
b677ba8202 Code/style cleanup 2019-02-16 17:34:17 +01:00
JustArchi
e1e9a9f457 Rider cleanup 2019-01-14 19:11:17 +01:00
JustArchi
192656cd02 Implement basic code contracts 2019-01-10 23:44:32 +01:00
JustArchi
3bbddcf723 Happy new year 🎉 2019-01-02 16:32:53 +01:00
JustArchi
f8aa8babcf R# cleanup 2018-12-15 00:27:15 +01:00
JustArchi
307e69c48d Disable regex cache for MinMemoryUsage mode 2018-08-17 19:20:27 +02:00
JustArchi
16d002f99b Misc code cleanup 2018-07-27 04:52:14 +02:00
JustArchi
b39f11a3d9 Misc 2018-06-16 08:44:36 +02:00
JustArchi
069c3703e7 Add OS variant to log 2018-06-16 08:04:02 +02:00
Łukasz Domeradzki
9a30277cf8 Runtime upgrade to .NET Core 2.1 (#804)
* Initial bump to .NET Core 2.1

* Add workaround for https://github.com/mono/linker/issues/286

* Deprecate BackgroundGCPeriod

* Websockets updates

* Misc

* Check if travis works with 2.1

* Not yet

* Fix travis for now

* Test

* Whatever, travis is broken right now

* Schema update

* Update travis

* Test travis

* Check OSX

* Correct CI versions

* Misc

* Misc
2018-06-04 00:17:13 +02:00
JustArchi
47800f0c29 Fix docker builds wrongly announced as custom 2018-05-11 23:20:25 +02:00
JustArchi
925649b43a Misc 2018-04-29 04:51:16 +02:00
JustArchi
c06d9cc887 Rewrite command-line arguments 2018-04-18 01:04:28 +02:00
JustArchi
3830684358 Rewrite deprecated Environment.OSVersion 2018-03-10 14:47:20 +01:00
JustArchi
6bbff6ab4e Happy new year 2018-01-01 02:56:53 +01:00
JustArchi
46eb108117 Misc 2017-12-17 11:53:36 +01:00
JustArchi
d5f44f8f6c ReSharper: update header 2017-11-18 17:27:06 +01:00
JustArchi
f36e6cace4 Revert "Test"
This reverts commit 06b6a7ce16.
2017-09-26 06:31:07 +02:00
JustArchi
06b6a7ce16 Test 2017-09-26 06:13:34 +02:00
JustArchi
7ab4027d0a Address https://github.com/SteamRE/SteamKit/issues/455 2017-09-26 05:59:41 +02:00
JustArchi
c2908d24fe Misc 2017-09-24 13:05:53 +02:00
Łukasz Domeradzki
197539f353 Linker optimizations (#633)
* Initial linker optimizations

* Fix Windows build
2017-08-31 07:30:09 +02:00
JustArchi
51d59f0f66 Fix Windows builds 2017-08-02 20:47:53 +02:00
JustArchi
93716218a5 Misc 2017-07-13 06:08:52 +02:00
JustArchi
88a7d2e7e9 Code cleanup 2017-07-09 09:09:46 +02:00
JustArchi
0ecf6da44e Initial .NET Core 2.0 port 2017-06-26 03:36:51 +02:00
JustArchi
fcf9686a79 Revert "Resharper cleanup"
This reverts commit 7c8d7b5ada.

Bad cleanup.
2017-04-05 17:01:18 +02:00
JustArchi
7c8d7b5ada Resharper cleanup 2017-04-05 16:59:48 +02:00
Bruno Logerfo
8f417f85e9 Found more use cases 2017-03-14 08:41:33 -03:00
JustArchi
807ef2d83a Prevent Windows from going to sleep only in headless mode 2017-03-07 03:47:56 +01:00
JustArchi
4c6e9113d2 Closes #489 2017-03-05 17:41:57 +01:00