Commit Graph

  • d2baf22052 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2015-01-23 18:20:39 +1100
  • c317588c6d Change ckdb userstats to update every minute instead of every 10 minutes Con Kolivas 2015-01-23 18:15:58 +1100
  • b92f78884b ckdb - fix unused variable warnings kanoi 2015-01-23 16:49:32 +1100
  • ffe030e976 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-23 16:29:13 +1100
  • a111f51dda ckdb - dont store user/workerstats in the DB and only the last one per worker in RAM kanoi 2015-01-23 16:28:23 +1100
  • 0bd96f22e6 Don't queue workerstats while ckdb is offline Con Kolivas 2015-01-23 15:26:04 +1100
  • 1624d527b9 Use a portable boolean to tell us when ckdb is offline and change it under lock Con Kolivas 2015-01-23 15:23:07 +1100
  • e11cb5c57e Drop clients that are holding a reference count only after they've dropped it Con Kolivas 2015-01-22 17:45:02 +1100
  • 39d75f7877 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-22 17:23:34 +1100
  • c68b30c08e Grab the caller of dec_instance_ref for debugging Con Kolivas 2015-01-22 17:07:01 +1100
  • e0528a5fb2 Add error message if ref count drops below zero Con Kolivas 2015-01-22 16:57:52 +1100
  • 83455ef06c Fix minor memleak in send_recv_auth Con Kolivas 2015-01-22 16:33:12 +1100
  • ee58990b05 Generically dealloc instead of freeing share pointer in purge_share_hashtable Con Kolivas 2015-01-22 14:10:03 +1100
  • f2a3421c57 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-22 15:02:53 +1100
  • a72510df7f Only ask the stratifier to drop a client once Con Kolivas 2015-01-22 13:53:13 +1100
  • 01ce6a65a0 Revert wrongly implicated linked list freeing workaround Con Kolivas 2015-01-22 12:57:56 +1100
  • e009db5dc5 Add information when disconnecting a client Con Kolivas 2015-01-22 12:43:47 +1100
  • 435dc5318a Decrease verbosity of invalid char being passed to validate_address Con Kolivas 2015-01-22 12:03:24 +1100
  • 04c1d3c058 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-21 22:18:12 +1100
  • f34516bd4d Free buffer used for authorisation message Con Kolivas 2015-01-21 15:20:56 +1100
  • f11250dd2d Do not move clients from hash/linked lists while they hold a ref count Con Kolivas 2015-01-21 14:15:29 +1100
  • b7186cfcd9 Use cached instance variable Con Kolivas 2015-01-21 13:09:38 +1100
  • bb8593bfa0 Take the same attendant precautions when deleting passthrough client ram as regular clients by adding them to the dead list Con Kolivas 2015-01-21 13:02:56 +1100
  • 712d5c38d6 Make sure a passthrough client is still in the hash table before deleting it Con Kolivas 2015-01-21 12:37:23 +1100
  • 3a40311ece Passthrough clients should be rare so increase verbosity of them being added Con Kolivas 2015-01-21 12:29:33 +1100
  • d6d81093be Fix impossible warnings in drop_client Con Kolivas 2015-01-21 02:17:53 +1100
  • 827f42ba73 Fix impossible >= UNIX_PATH_MAX warning Con Kolivas 2015-01-21 02:15:13 +1100
  • cc0d188573 Fix impossible len >= UNIX_PATH_MAX warning Con Kolivas 2015-01-21 02:14:38 +1100
  • ff01a1c414 Fix impossible sockd < 1 scenario Con Kolivas 2015-01-21 02:11:55 +1100
  • 09c7086808 Fix impossible patch -p1 -i crap.patch warning in bind_socket Con Kolivas 2015-01-21 02:10:16 +1100
  • 9d06777724 Do not attempt to decref a freed passthrough client Con Kolivas 2015-01-21 02:06:03 +1100
  • b97132dde3 Zero wb->logdir even if we don't write to the share log since we still use the value of it Con Kolivas 2015-01-21 01:52:47 +1100
  • 9892f3af64 Use validhex before checking sessionid in disconnected_sessionid_exists to avoid spewing warnings for client errors Con Kolivas 2015-01-20 11:22:24 +1100
  • e5b9e84129 Add a helper function to check a hex string is valid Con Kolivas 2015-01-20 11:09:49 +1100
  • bf1ac3b57b Age disconnected instances over 10 minutes old to the dead list to be reaped Con Kolivas 2015-01-19 22:02:25 +1100
  • 259f8ca4a0 Use invalidate in the connector when dropping a client to ensure the stratifier drops it as well Con Kolivas 2015-01-13 16:49:16 +1100
  • b5f65d2e5a Tell the stratifier to drop a client if the connector is told to drop it and cannot find it any more Con Kolivas 2015-01-13 16:30:52 +1100
  • 330c966556 Remove client ram safely in invalidate_client foreach loop Con Kolivas 2015-01-19 21:42:25 +1100
  • 99dc8947d2 Add message about lost ram in block solve and reject. Con Kolivas 2015-01-19 21:37:26 +1100
  • 1b5e73e57b Fix issues with freeing ram safely on dropping clients and converting them from disconnected to dead clients by removing their instance every time and freeing dead client ram safely when it will no longer be used by the loop. Con Kolivas 2015-01-19 21:28:08 +1100
  • cfe29a1e92 Fix stratum resume support to work with any supported enonce1 sizes Con Kolivas 2015-01-19 19:54:31 +1100
  • 50f48aa5e3 Push version to 0.8.2 Con Kolivas 2015-01-19 19:21:08 +1100
  • 2d688ddb07 Push version number to 0.8.1 Con Kolivas 2015-01-14 20:10:51 +1100
  • 34853c598d Back off and retry on failed realloc in read_socket_line instead of failing. ckolivas 2015-01-19 15:58:30 +1100
  • 36d814d484 Add clients to dead list when dropping all clients instead of losing all references to them ckolivas 2015-01-19 15:47:39 +1100
  • 17e5f996d8 Reinstate add idle, disconnected and dead counts to pool stats ckolivas 2015-01-19 15:31:57 +1100
  • ef805811d2 Update copyright years on affected files ckolivas 2015-01-19 15:14:03 +1100
  • 71e6043719 Perform back off and retry on failed realloc in jansson strbuffer_append_bytes instead of failing ckolivas 2015-01-19 15:11:15 +1100
  • ced22bd5ea Only lock/unlock once in drop_client ckolivas 2015-01-19 10:54:25 +1100
  • d1bbd779f4 Merge branch 'master' into safe ckolivas 2015-01-19 07:14:08 +1100
  • b3d251638f Only add authorised clients to disconnected list Con Kolivas 2015-01-16 13:31:54 +1100
  • 98bf62ab67 Fill enonce1 data properly for stratum reconnect support Con Kolivas 2015-01-18 21:24:42 +1100
  • 407f087c63 Give an outright fail response if failed msg is received from ckdb on auth Con Kolivas 2015-01-18 21:04:13 +1100
  • 451256f6cb Only give unparseable auth message when failed message is not recognised Con Kolivas 2015-01-18 21:01:34 +1100
  • c7600f281b Differentiate generated authed users from unauthorised and don't do any stats on unauthed users Con Kolivas 2015-01-18 20:46:33 +1100
  • 8c6e786cef Check for corrupt ckdb responses in send_recv_auth Con Kolivas 2015-01-18 19:22:13 +1100
  • 2231a38455 Read off best share stats if they exist per user and worker ckolivas 2015-01-18 09:40:32 +1100
  • 6b9c558abc Add a json_get_double helper ckolivas 2015-01-18 09:36:47 +1100
  • 62117bb380 Reset all best share counters after a block solve ckolivas 2015-01-18 09:24:30 +1100
  • 5cff5ae477 Drop two potentally unhandled reference counts ckolivas 2015-01-18 09:04:33 +1100
  • 6c6912b0cd php - update the payout details to match the new shift code kanoi 2015-01-17 21:09:58 +1100
  • bba8cc5a54 ckdb - workmarkers has 2 trees, fix so both are always updated kanoi 2015-01-17 13:20:41 +1100
  • 60a26a5cf0 ckdb - add debug to pplns kanoi 2015-01-16 23:11:31 +1100
  • 6a35a02c77 php - convert a failed blocks access to pblocks kanoi 2015-01-16 20:22:09 +1100
  • 69ec5e702c ckdb - add a flush socket command to flush stdin, stdout and the logmsg log file kanoi 2015-01-16 18:31:55 +1100
  • 468a24c51e ckdb - since they are as yet unused, don't store new auths in ram kanoi 2015-01-16 14:46:34 +1100
  • 19a9b244b3 ckdb - log steps in the storage dealloc during shutdown kanoi 2015-01-16 14:32:27 +1100
  • d64a0fa5de Dead instances are a singly linked list only Con Kolivas 2015-01-16 11:52:34 +1100
  • 4d72f49061 Preauth workers for the first 10 minutes after a user first authorises Con Kolivas 2015-01-16 09:41:50 +1100
  • 23c13f8647 ckdb - workmarkers processing: no sharesummaries is not an error kanoi 2015-01-15 21:25:17 +1100
  • cc86234cd0 ckdb - allow setting workmarkers as processed via marks command kanoi 2015-01-15 21:16:36 +1100
  • f1f0290074 ckdb - enable, optionally automatic but off by default, workmarkers processing kanoi 2015-01-15 19:08:31 +1100
  • 8964743cd1 Disable resume support till dereference issue in disconnected_instances resolved Con Kolivas 2015-01-18 22:04:18 +1100
  • 9b56c0c546 Fill enonce1 data properly for stratum reconnect support Con Kolivas 2015-01-18 21:24:42 +1100
  • b1f7cd833d Give an outright fail response if failed msg is received from ckdb on auth Con Kolivas 2015-01-18 21:04:13 +1100
  • 2e340ec38a ckdb - add the workername to the workerstats user error message kanoi 2015-01-18 21:02:48 +1100
  • 2980ff4032 Only give unparseable auth message when failed message is not recognised Con Kolivas 2015-01-18 21:01:34 +1100
  • 9edf91d17e Differentiate generated authed users from unauthorised and don't do any stats on unauthed users Con Kolivas 2015-01-18 20:46:33 +1100
  • 84dc0146e5 Check for corrupt ckdb responses in send_recv_auth Con Kolivas 2015-01-18 19:22:13 +1100
  • 0c51e7e863 Read off best share stats if they exist per user and worker ckolivas 2015-01-18 09:40:32 +1100
  • 93822b28a2 Add a json_get_double helper ckolivas 2015-01-18 09:36:47 +1100
  • 85230c270e Reset all best share counters after a block solve ckolivas 2015-01-18 09:24:30 +1100
  • e1514cdc01 Drop two potentally unhandled reference counts ckolivas 2015-01-18 09:04:33 +1100
  • 24cb6e0c3e Count the number of workernames and use that as the upper limit for the sanity check in statsupdate ckolivas 2015-01-17 23:20:02 +1100
  • ff119f4c11 Merge branch 'master' of bitbucket.org:ckolivas/ckpool ckolivas 2015-01-17 22:51:01 +1100
  • 137203c01a Count each idle client as an idle worker instead of per workername ckolivas 2015-01-17 22:50:40 +1100
  • 9c262b7fe8 Keep worker instances in the linked list since we don't know if we're removing the last one or not ckolivas 2015-01-17 22:48:13 +1100
  • 3b4912e8e0 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-17 21:10:57 +1100
  • e397757ec8 php - update the payout details to match the new shift code kanoi 2015-01-17 21:09:58 +1100
  • e91ea6c235 Add sanity breakout of worker instance looping in statsupdate ckolivas 2015-01-17 17:25:48 +1100
  • 1465002ecc Only lock and release the write instance lock once in drop_client ckolivas 2015-01-17 17:17:09 +1100
  • b172162f27 kill_instance always follows del_disconnected ckolivas 2015-01-17 17:07:34 +1100
  • 11fc2fb67d Revert "Only iterate over workers in workerstats if some are left in the worker_instances list" ckolivas 2015-01-17 17:05:24 +1100
  • deb63501b9 ckdb - workmarkers has 2 trees, fix so both are always updated kanoi 2015-01-17 13:20:41 +1100
  • 70c64dd0b3 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-16 23:12:13 +1100
  • 003408e441 ckdb - add debug to pplns kanoi 2015-01-16 23:11:31 +1100
  • 1ade97b566 Merge branch 'master' of bitbucket.org:ckolivas/ckpool ckolivas 2015-01-16 20:34:25 +1100
  • 450f2040b2 Only iterate over workers in workerstats if some are left in the worker_instances list ckolivas 2015-01-16 20:33:52 +1100
  • 112c5d01f4 php - convert a failed blocks access to pblocks kanoi 2015-01-16 20:22:09 +1100
  • 468e9ee8d7 ckdb - add a flush socket command to flush stdin, stdout and the logmsg log file kanoi 2015-01-16 18:31:55 +1100