Commit Graph

18 Commits

Author SHA1 Message Date
Derrick Hammer 1090b203dc *Handle available only having 1 item 2022-07-26 23:59:45 -04:00
Derrick Hammer cb139131e1 *Call updateAvailable in loop
*Check available length and abort and return if empty
2022-07-26 23:28:12 -04:00
Derrick Hammer 5f37b74baf *Try to update the available list every loop and only compare max _activeRelays against the min of _maxConnections and available 2022-07-26 23:22:10 -04:00
Derrick Hammer cb16b87b73 Revert "*Store copy of activeRelay size to prevent infinite loop"
This reverts commit 7cb32b716a.
2022-07-26 23:13:30 -04:00
Derrick Hammer 7cb32b716a *Store copy of activeRelay size to prevent infinite loop 2022-07-26 23:09:25 -04:00
Derrick Hammer ce575b623c *cast to string 2022-07-26 22:58:24 -04:00
Derrick Hammer 007b9a09d7 *Fix usage of connection 2022-07-26 22:56:49 -04:00
Derrick Hammer 8d4be6ec4a *Using wrong map 2022-07-26 22:49:46 -04:00
Derrick Hammer b52bdcdeb2 *check for 0, not less than 0 2022-07-26 21:46:58 -04:00
Derrick Hammer fe09e2a5d9 *add negative condition 2022-07-26 21:46:24 -04:00
Derrick Hammer 2e71082a59 *prettier 2022-07-26 21:39:32 -04:00
Derrick Hammer c7b64064ad *_relays is a map 2022-07-26 21:39:16 -04:00
Derrick Hammer 377b9548cf *Prevent ready from running fillConnections twice 2022-07-26 21:38:05 -04:00
Derrick Hammer 35eed2a157 *Abort if no available relays to process 2022-07-26 21:36:30 -04:00
Derrick Hammer 685bc59894 *Refactor to use persistent websocket connections, randomly (secure) picked, then load balance connect requests the same way 2022-07-26 19:27:59 -04:00
Derrick Hammer 918c49f146 *Set custodial to false 2022-07-21 14:58:32 -04:00
Derrick Hammer 2c197cdeef *refactor
*remove wspool
*reformat
2022-07-20 01:55:44 -04:00
Derrick Hammer 915d15a9dc *Initial version 2022-06-27 18:22:38 -04:00