Commit Graph

11 Commits

Author SHA1 Message Date
henrik karlsson
bd2dcb7504 [Uba]
* Implemented simple Http get using tcp directly in order to work on all platforms and also be lightweight
* Changed so aws queries are using above implementation and enabled aws checks on linux
* Added UbaCli "-checkaws" option to be able to test this functionality

[CL 30069487 by henrik karlsson in ue5-main branch]
2023-12-03 00:04:26 -05:00
henrik karlsson
ed41c8e875 [Uba]
* Enabled socket reuse on linux because it seems farm turns around faster than sockets gets freed by the os

[CL 30033379 by henrik karlsson in ue5-main branch]
2023-12-01 02:59:24 -05:00
henrik karlsson
b2a941bc03 [Uba]
* Added missing posix_spawnattr_setgroup call

[CL 30032388 by henrik karlsson in ue5-main branch]
2023-11-30 22:05:19 -05:00
henrik karlsson
bcfa7e60a6 [Uba] * Added code to handle leaked shm_open. This is made by creating "lock files" which only purpose is to keep track of which shm_open that is used and not. When a shm_open is created a lock-file is also created and locked. When process dies, all files gets unlocked. When a new session starts we can traverse the lock-files and see which ones are not locked, those belonged to a process that does not exist anymore, and we can call shm_unlink on those and delete them. This change solves the ever leaking shm_open entries causing machine to eventually go oom
[CL 30032365 by henrik karlsson in ue5-main branch]
2023-11-30 22:03:49 -05:00
henrik karlsson
c155e57afc [Uba]
* Added unit test for inverted connect path (client listen and server connects)
* Changed so AddClient waits for connect to succeed/fail before returning

[CL 30018826 by henrik karlsson in ue5-main branch]
2023-11-30 12:58:02 -05:00
henrik karlsson
8a4c121c61 [Uba]
* Fixed so DeleteAllCas is running in parallel to speed up cleanups since we often have 100k+ files
* Added -resetstore as cmd line option to UbaAgent to be able to wipe all cas storage

[CL 30010512 by henrik karlsson in ue5-main branch]
2023-11-30 03:08:02 -05:00
henrik karlsson
736434375e [Uba]
* Fixed so child processes wait for acknowledgement that ExitMessage has been handled on session side. This to prevent race where parent process might move on after waiting for child and then read data produced by the child (and the data is written in the Exit message by the session process)

[CL 30010210 by henrik karlsson in ue5-main branch]
2023-11-30 02:33:02 -05:00
henrik karlsson
b048c37f4a [Uba]
* Improved assert descriptions

[CL 30005460 by henrik karlsson in ue5-main branch]
2023-11-29 20:09:36 -05:00
henrik karlsson
0ac760efcb [Uba]
* Fixed test linux compile errors

[CL 30005240 by henrik karlsson in ue5-main branch]
2023-11-29 20:06:06 -05:00
henrik karlsson
4299735b91 [Uba]
* Added so FileAccessor are using temp file for write on non-windows (since DeleteOnClose does not exist)
* Reverted reuse of filemappings (shm_open).. it caused problems when running agent on same machine

[CL 30004228 by henrik karlsson in ue5-main branch]
2023-11-29 19:41:28 -05:00
joe kirchoff
9affe69d97 UnrealBuildAccelerator: Experimental for 5.4
#jira UE-197967

[CL 30002804 by joe kirchoff in ue5-main branch]
2023-11-29 18:47:11 -05:00