mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
The app dials ~190 relays in one burst from RelayPool.connect() and spikes to ~640 threads, so capping the relay client's Dispatcher.maxRequests looks like a one-line throttle. It is not. Against a real relay, maxRequests=4 with 20 dials opens exactly 4; the other 16 queue forever and never fail, so nothing surfaces the stall. Setting maxRequests=N would cap the app at N relays permanently. Pins the behaviour so the knob is not reached for again. Throttling has to happen above OkHttp, in RelayPool, where a settled dial can release its permit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>