799 Commits (2c1944534be2c523630aa2a64a9e71a2723484ec)

Author SHA1 Message Date
Con Kolivas 9706b52965 Recycle used client structs instead of freeing them 10 years ago
Con Kolivas 92dacd8513 Avoid cute locking 10 years ago
Con Kolivas 992fd54b9d Choose best proxy when there is any adequately sized subproxy matching the current one 10 years ago
Con Kolivas 75cc43664a Use the msg entry helpers for proxy logging 10 years ago
Con Kolivas 343e5922e7 Use the message entry helper functions for user stats logging 10 years ago
Con Kolivas 1479303138 Add helper functions for storing messages to be dumped outside of other locks 10 years ago
Con Kolivas 1b077f2a05 Log to files outside of instance lock 10 years ago
Con Kolivas ca5c7da81b Provide helper functions for storing log text and their associated filenames to be written to in unlocked code 10 years ago
Con Kolivas 3047ee5c8f Use the more generic ckmsg_t for the json_lists 10 years ago
Con Kolivas ede3139843 Add proxy statistics to logging 10 years ago
Con Kolivas d80393930d Store a count of the number of subproxies per proxy 10 years ago
Con Kolivas 64f4abd302 Count combined clients per parent proxy 10 years ago
Con Kolivas 45e80f09ff Send a blank sessionid in proxy mode so clients don't think we have resumed if enonce1 ends up matching on reconnect 10 years ago
ckolivas d5dedfe4a9 Demote discarded message 10 years ago
ckolivas 0a4ce58b3f Dramatically simplify the setting of enonce1 to just an LE encoded 64 bit 10 years ago
ckolivas 7ca5f9688f Use the same enonce1u across all proxies to avoid clients thinking they have resumed with the same sessionid and enonce1u 10 years ago
Con Kolivas 8cd36b225b We must flag all clients to switch on a deadproxy regardless of whether there is room on the current proxy or not 10 years ago
Con Kolivas 656da05f83 Add proxy info to client auth message 10 years ago
Con Kolivas c28a8fa202 Avoid any attempt at using sessionid in proxy mode 10 years ago
Con Kolivas a7252c83d5 Limit reconnects sent concurrently 10 years ago
Con Kolivas ecc4482b79 Test for dropped clients before not authorised ones 10 years ago
ckolivas d103ea97df Only kill off proxy if it's actually dead 10 years ago
Con Kolivas d4304de798 These weren't the droids we were looking for. 10 years ago
Con Kolivas 228c2cf19b These weren't the droids we were looking for 10 years ago
Con Kolivas d75dd5543c Try async messages again 10 years ago
Con Kolivas 918a6ebe0c Make the stratifier tell the generator precisely how many extra connections we need 10 years ago
Con Kolivas a6ac868cd3 Rework subproxy recruitment to allow requests to stack but abandon them if the subproxy is not alive 10 years ago
Con Kolivas daa478f1f5 Off by one on headroom 10 years ago
Con Kolivas cd342551a8 Count reconnecting clients as part of the headroom consumed 10 years ago
Con Kolivas ad5def42d2 Reassess headroom and recruit extra proxies upon receiving each new subscribe 10 years ago
Con Kolivas 565d253e3f Reassess on all notifies 10 years ago
Con Kolivas 6f08c301e9 Tweak reconnects 10 years ago
Con Kolivas 95102da854 Only set current proxy to a parent proxy 10 years ago
Con Kolivas 7a4cab1a88 Reset parent proxy as well in reap_proxies and add some sanity checks, removing now unused retired proxies list 10 years ago
Con Kolivas 0e70b8bf19 Reuse proxies that are still alive and no longer have any clients bound to them 10 years ago
Con Kolivas 2054f116d7 Only reconnect with the parent proxy notify 10 years ago
Con Kolivas 55d616817b Use the proxy id to determine if we should try reconnecting clients on notify 10 years ago
Con Kolivas 75b9a4f140 Reconnect clients on every notify from a subproxy 10 years ago
Con Kolivas 7009fb1077 Reconnect clients whenever we detect a new notify from a subproxy of the current proxy 10 years ago
Con Kolivas 73dab07652 Add proxy selection info 10 years ago
Con Kolivas 9234ced6f2 Give subproxy the lowid of the parent proxy 10 years ago
Con Kolivas 668d96710e Check lowids in selecting stratum data 10 years ago
Con Kolivas 2f2d454763 Create new instances of proxies on reconnect instead of trying to overwrite old ones on reconnect 10 years ago
Con Kolivas 14873b44b7 Convert proxy id to int64 10 years ago
Con Kolivas 922855b171 Fine tune proxy reconnects 10 years ago
Con Kolivas dd22d73145 Do not switch more clients than we have headroom 10 years ago
Con Kolivas fc75956823 Replace the parent of existing proxies with the new one 10 years ago
Con Kolivas 6b3cd82525 Revert "Use async send proc as a separate thread from workqueues" 10 years ago
Con Kolivas 7fa3dc2529 Only dec worker if user exists 10 years ago
Con Kolivas 8502036c5d Only dec worker if user is set 10 years ago