Xray-core/app/dispatcher
yuhan6665 42aea01fb5
Core: Add mutex to injection resolution (#4206)
* Revert "Add RequireFeaturesAsync() that works regardless order of app init"

* Add mutex to injection resolution

- Turns out we already support async DI resolution regardless of feature ordering
Previous code contain a race condition causing some resolution is lost
- Note that the new mutex cover s.pendingResolutions and s.features
but must not cover callbackResolution() due to deadlock
- Refactor some method names and simplify code

* Add OptionalFeatures injection

For example OptionalFeatures() is useful for fakedns module
2024-12-26 12:55:12 +00:00
..
config.pb.go Chore: Generate *.pb.go files with protoc v5.28.2 2024-10-16 04:06:21 +00:00
config.proto v1.1.0 2020-12-04 09:36:16 +08:00
default.go Core: Add mutex to injection resolution (#4206) 2024-12-26 12:55:12 +00:00
dispatcher.go Remove legacy code (#3838) 2024-09-23 11:28:19 -04:00
fakednssniffer.go Chore: Run gofmt (#3990) 2024-11-09 11:16:11 +00:00
sniffer.go Sniff: Routing “attrs” support non http inbound (#3808) 2024-09-13 12:26:36 -04:00
stats_test.go v1.1.0 2020-12-04 09:36:16 +08:00
stats.go Removal: confonly 2020-12-11 13:05:29 +08:00