Commit Graph

  • 31c205c138 Add basic configuration options for redirector mode Con Kolivas 2015-06-11 12:05:01 +1000
  • f3a826d30f User ID is an integer in workerinfo Con Kolivas 2015-06-07 08:16:33 +1000
  • c627c12cab User id is an integer Con Kolivas 2015-05-28 15:19:07 +1000
  • b1be1edd8b ckdb/php - add diffinv to shift replies and show on the shift page kanoi 2015-05-16 15:03:32 +1000
  • 0cf3f121e2 ckdb - initialise the payout expiry counters kanoi 2015-05-14 23:03:16 +1000
  • 9f859f0f78 ckdb - enable payouts expiry and a block minerreward override kanoi 2015-05-14 21:30:47 +1000
  • 6832433eeb ckdb - limit reload queue and fix reload lost ∞ loop kanoi 2015-05-12 23:45:04 +1000
  • a128c70dbe ckdb - sharesummaries can't be deleted since they are no longer in the DB kanoi 2015-05-12 11:21:50 +1000
  • d6ebc8ad97 ckdb - add a record counter for the 2 largest DB table loads kanoi 2015-05-12 10:34:45 +1000
  • acdd8203a0 ckdb - ensure (unlikely) summarisation can never affect payout generation kanoi 2015-05-12 09:38:57 +1000
  • fcfe965ba3 ckdb - don't store sharesummaries in the DB and delay mark processing until sync has completed kanoi 2015-05-12 09:20:38 +1000
  • 2f17880dd1 php - ignore case on sort for Acclaim kanoi 2015-05-11 09:16:00 +1000
  • e5db7d222e ckdb - must remember to unlock locks ... kanoi 2015-05-11 08:03:01 +1000
  • ad53fac155 php - add Block Acclaim kanoi 2015-05-11 06:35:50 +1000
  • e1e4accda6 ckdb/php - Hall of Fame stats (no user access yet) kanoi 2015-05-10 21:09:38 +1000
  • 0b4c1df085 php - add notifications kanoi 2015-05-09 10:20:40 +1000
  • b234dd647f Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-05-07 21:07:09 +1000
  • 8345abc12a ckdb - for luck :) kanoi 2015-05-07 21:06:46 +1000
  • 9c4e63691a Increase string storage space for enonce1/enonce1var to accommodate 8 byte nonce1length configuration ckolivas 2015-05-06 15:10:38 +1000
  • 48a8b12ed6 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2015-05-01 00:12:42 +1000
  • 2d6a261ffb Increase version to 0.8.8 Con Kolivas 2015-05-01 00:12:04 +1000
  • 94c682bfa2 ckdb - remove unnecessary dup messages vs reload kanoi 2015-04-30 19:38:54 +1000
  • 8d016f1811 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-04-30 13:46:27 +1000
  • ffa577b7a6 php - add a 3rd decimal to some numbers kanoi 2015-04-30 13:37:24 +1000
  • ba4757b721 Merge branch 'master' into multiproxy Con Kolivas 2015-04-30 11:13:13 +1000
  • 75f8a93d49 Check for zero ret in read_socket_line Con Kolivas 2015-04-30 11:12:08 +1000
  • 4bc776f99b Use non-blocking reads in read_socket_line, waiting up to the full timeout Con Kolivas 2015-04-30 11:10:58 +1000
  • 85a08ce3ab Increase precision of wait read/write select to accept floats Con Kolivas 2015-04-30 00:49:24 +1000
  • 5364b78659 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2015-04-30 09:58:19 +1000
  • b197ba2ff9 Maintain a reference to which message we're currently sending to a client to prevent sending interleaved messages should they block Con Kolivas 2015-04-30 09:56:09 +1000
  • dcf55ff1fb Maintain a reference to which message we're currently sending to a client to prevent sending interleaved messages should they block Con Kolivas 2015-04-30 09:56:09 +1000
  • 2c1944534b Unconditionally drop all clients bound to a proxy should we update its subscribe Con Kolivas 2015-04-30 09:44:52 +1000
  • b21cc7176d Check for proxy sending being set as well Con Kolivas 2015-04-30 09:20:41 +1000
  • ef67643d5e Reference the actual message we're blocking on in the generator to a proxy and continue only that one Con Kolivas 2015-04-30 09:19:32 +1000
  • e2f08fe36b Prevent sending parts of different messages to upstream proxies Con Kolivas 2015-04-30 09:14:12 +1000
  • 2242d44b30 Check for no ret after send in generator Con Kolivas 2015-04-30 09:04:19 +1000
  • 6194af292f Send queued json messages in proxy mode non-blocking Con Kolivas 2015-04-30 08:45:06 +1000
  • f359b57119 Close umsg sockd on clearing unix message in generator Con Kolivas 2015-04-30 01:31:36 +1000
  • 3fb8ff91d6 Continue waiting in read_socket_line if we have no more to read but have not used up the full timeout Con Kolivas 2015-04-30 01:03:40 +1000
  • 9bcacd0131 Increase precision of wait read/write select to accept floats Con Kolivas 2015-04-30 00:49:24 +1000
  • 19e2a1b47b php - remove css/js from page.php and put in inc.php kanoi 2015-04-29 23:41:13 +1000
  • ceac081a17 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-04-29 23:38:52 +1000
  • 2d0db60443 ckdb - check queue seq after reload completes kanoi 2015-04-29 23:38:44 +1000
  • d8a5228513 Demote flagged message Con Kolivas 2015-04-29 20:16:33 +1000
  • 0383888d5e Demote non existent proxy message to info Con Kolivas 2015-04-29 20:14:31 +1000
  • 7e2280ff2d Check for eom more carefully in read_socket_line Con Kolivas 2015-04-29 20:06:12 +1000
  • cb640b6ab2 Check for epoll hangups fully Con Kolivas 2015-04-29 19:53:38 +1000
  • 25840cfec9 Demote client flag message to info level Con Kolivas 2015-04-29 19:50:05 +1000
  • d59c8c1b41 Demote proxy logging to info level Con Kolivas 2015-04-29 19:48:58 +1000
  • 11023ecfec Use non blocking reads in read_socket_line Con Kolivas 2015-04-29 19:47:14 +1000
  • 4e5ccb6e13 check for clients that really need to reconnect and do them asap Con Kolivas 2015-04-29 18:30:19 +1000
  • 182e1b2d8d Move to a completely pull based mechanism for reconnecting clients once there are enough upstream connections instead of forcing reconnects when there may not be enough Con Kolivas 2015-04-28 20:09:07 +1000
  • e62e26fd01 Merge branch 'master' into multiproxy Con Kolivas 2015-04-28 13:59:06 +1000
  • dcfcae1779 Add errno details to write based close Con Kolivas 2015-04-28 09:53:17 +1000
  • b73f44f00c Tidy up and demote oversize message, adding client id Con Kolivas 2015-04-28 09:50:09 +1000
  • 5365f1a420 Increase listen backlog to 8k Con Kolivas 2015-04-28 09:29:33 +1000
  • 882bd693dd Display connector stats every ~60s in passthrough mode Con Kolivas 2015-04-28 09:26:34 +1000
  • 146d164053 Put dropped at the start of the stratifier messages for easier parsing Con Kolivas 2015-04-28 09:03:21 +1000
  • 806d1c76a2 Do not create a stratifier statsupdate thread in passthrough mode since the stats always read zero Con Kolivas 2015-04-28 09:02:52 +1000
  • 68e44be3ce Check for oversized client message before doing any reads to avoid possibility of exactly the wrong size buffer to ever invalidate the client, adding more info to a downgraded message Con Kolivas 2015-04-28 08:52:16 +1000
  • 8447e3ff55 Microoptimise Con Kolivas 2015-04-28 08:44:21 +1000
  • 27d68200ec Add better stats about queued sends consisten with the list changes Con Kolivas 2015-04-28 08:42:12 +1000
  • ed44843e37 Append all new sender_ends in csender instead of only the first Con Kolivas 2015-04-28 08:26:54 +1000
  • f835697165 Microoptimisation Con Kolivas 2015-04-28 02:06:24 +1000
  • 7c62450297 Increase listen backlog to speed up reconnects up to the system config limits Con Kolivas 2015-04-27 22:20:52 +1000
  • 83b23d864f Remove decrease of listen backlog which is of questionable utility Con Kolivas 2015-04-27 22:08:41 +1000
  • f580a82a06 Drop the subclients of passthroughs that no longer exist Con Kolivas 2015-04-27 21:46:00 +1000
  • 883d870060 Use the simpler read/write calls and make all client sockets non-blocking Con Kolivas 2015-04-27 17:34:38 +1000
  • 3919d18260 Rework write path to have no potentially blocking calls and be able to send partial messages Con Kolivas 2015-04-27 07:17:51 +1000
  • 1efe7120c4 Use ref_client_by_id in send_client instead of open coding it Con Kolivas 2015-04-26 21:39:53 +1000
  • ec39117a1c Don't return client if it is invalid in ref_client_by_id in the connector Con Kolivas 2015-04-26 20:17:55 +1000
  • 0395dd052f Use the client reference count in the connector to protect the client fd, closing it only once there are no more references to it Con Kolivas 2015-04-26 20:03:17 +1000
  • 9375362044 Revert "Use a unique event structure for each client added to the epoll list" Con Kolivas 2015-04-26 18:53:30 +1000
  • 8f1336986f Use a unique event structure for each client added to the epoll list Con Kolivas 2015-04-26 18:06:20 +1000
  • 6a159bf5dc We won't get no error if we are not testing fd -1 sockets any more, and use errno for consistent parsing of socket close errors Con Kolivas 2015-04-26 17:50:36 +1000
  • c6ae644d53 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2015-04-26 17:47:30 +1000
  • 62d1ec3f8a Use signal handlers from sender and receiver threads in the connector avoid needing to pthread tryjoin on every message Con Kolivas 2015-04-26 17:47:23 +1000
  • 2bde0bbe3d Avoid trying to parse messages or test the client's error if their fd has already been invalidated Con Kolivas 2015-04-26 17:38:36 +1000
  • 2561eff1cb Update user auth time on each successful auth ckolivas 2015-04-26 08:52:29 +1000
  • d0f7ec7c35 Decrease verbosity of missing client warning in receiver, adding id number to the output Con Kolivas 2015-04-25 16:27:20 +1000
  • 4f6776a4c3 Allow specifying of the socket name to use in ckpmsg Con Kolivas 2015-04-25 15:40:55 +1000
  • fd73ebe3ae Send port number as a string on reconnect as most clients will be expecting it Con Kolivas 2015-04-25 15:30:44 +1000
  • 94dbd802a2 Wait longer after kill message Con Kolivas 2015-04-25 10:20:54 +1000
  • 22ece7b96c Revert "Don't use MSG_WAITALL on unix sockets" Con Kolivas 2015-04-25 10:13:48 +1000
  • 6c0c7dd7c4 Rework parse_client_msg to use the non blocking recv return values avoiding the need for an extra wait_read_select Con Kolivas 2015-04-25 09:51:12 +1000
  • 84ca31fcca Drop stratifier id when client id is not found in connector Con Kolivas 2015-04-25 09:13:20 +1000
  • 5633f8365d Prevent theoretical read out of bounds Con Kolivas 2015-04-24 21:17:24 +1000
  • 93d5760b2d Set server to the passthrough server client in passthrough mode Con Kolivas 2015-04-24 21:13:51 +1000
  • e095ba4b49 Mask out error 0 in socket error messages Con Kolivas 2015-04-24 21:03:30 +1000
  • 3f3dc7f4f3 Implement a stratum mining.term call which notifies the stratifier this client is terminating and use it to signal upstream pools when passthrough subclients have disconnected Con Kolivas 2015-04-24 19:58:40 +1000
  • e9441f2e1a Drop passthrough proxy connection from stratifier Con Kolivas 2015-04-24 19:28:11 +1000
  • 8bb50fa058 Process epoll read messages before hangups and errors and add more info about the type of hang up, increasing verbosity when it's an unexpected error Con Kolivas 2015-04-24 15:04:41 +1000
  • 0b96be0144 Use non blocking receive in parse_client_msg as we check for read readiness with wait_read_select first, and there is the unlikely event the state changes Con Kolivas 2015-04-24 14:12:29 +1000
  • 6e7f39321d We are not interested in POLLIN in wait_close but any mode of a closed socket Con Kolivas 2015-04-24 14:08:58 +1000
  • 2cc42376bd Check also for POLLRDHUP in wait/read write select helpers Con Kolivas 2015-04-24 14:06:27 +1000
  • 24d89a3e72 Don't use MSG_WAITALL on unix sockets Con Kolivas 2015-04-24 14:04:49 +1000
  • da2f62aea9 Pass through the downstream clients' address and server Con Kolivas 2015-04-24 11:44:17 +1000
  • ae2b00842b Allow unauthorised clients to send other messages till they've authorised but silently ignore them Con Kolivas 2015-04-24 11:07:33 +1000
  • 040dddc6ec ckdb - allocate seqnam with the full name and use it kanoi 2015-04-23 09:32:10 +1000
  • bf72ebbee6 Reinstate checking for zero as a return from recv for cleanly disconnected clients Con Kolivas 2015-04-22 19:56:24 +1000