Commit Graph

  • ab4a9fc1a0 Cope with client.reconnect listing port as a string instead of integer Con Kolivas 2015-01-30 15:53:57 +1100
  • 75f24a5d16 Cope with a socket line that is closed at the end of the message Con Kolivas 2015-01-30 15:50:07 +1100
  • d54a3156ad Read off any cached mindiff when we do a delayed auth Con Kolivas 2015-01-30 12:48:01 +1100
  • 1002e91bcc Push version to 0.8.5 Con Kolivas 2015-01-30 11:46:52 +1100
  • 10613ecc76 Set client user_instance under lock to prevent race upon client removal Con Kolivas 2015-01-30 11:44:20 +1100
  • d0bccb1e11 Remove unnecessary delay in removing dead clients with real dereference bug being found Con Kolivas 2015-01-30 11:43:18 +1100
  • babccc6ddf Actually terminate when the child process dies. Con Kolivas 2015-01-30 09:32:57 +1100
  • 06fc1da6c1 Keep track of the highest client id the stratifier has seen to avoid needing to iterate over all disconnects to see if it exists ckolivas 2015-01-29 16:50:57 +1100
  • 8959cac620 Set to read only various constants in ckpool.c ckolivas 2015-01-29 16:10:36 +1100
  • 4585f634b8 Set to read only various constants in stratifier.c ckolivas 2015-01-29 15:53:16 +1100
  • 112500f3fd Remove now unnecessary declaration. ckolivas 2015-01-29 15:12:42 +1100
  • d4c4c2c76d Revert "Sanity check various jp parameters before trying to decref them" ckolivas 2015-01-29 15:03:19 +1100
  • 3e1cedfc74 Sanity check various jp parameters before trying to decref them ckolivas 2015-01-29 15:00:46 +1100
  • 999f46ed1d Deep copy json method in create_json_params in case a non-standard request is made ckolivas 2015-01-29 14:58:00 +1100
  • b69037680d Don't bother NULLing automatic json params variables at end of functions ckolivas 2015-01-29 14:57:04 +1100
  • 6b5cf01272 Reuse free_smsg ckolivas 2015-01-29 14:49:17 +1100
  • ab93d55bad Do not return dropped clients in ref_instance_by_id ckolivas 2015-01-29 14:19:52 +1100
  • 9b2c30bcfa Add notification if referenced disconnected or dead clients exist which shouldn't happen. ckolivas 2015-01-29 13:53:49 +1100
  • aa23506ac2 Delete killed clients after a minute in case we have missed dangling references ckolivas 2015-01-29 13:48:08 +1100
  • 88fff8eb22 Merge branch 'master' of bitbucket.org:ckolivas/ckpool ckolivas 2015-01-29 11:49:54 +1100
  • 7a9e162b8e Rename instance to user in __drop_client ckolivas 2015-01-29 11:49:46 +1100
  • 915e64b5fb Don't use instance as a name for user_instance_t in worker_instance ckolivas 2015-01-29 11:33:28 +1100
  • eb9e3d06c5 Replace all use of instance for user_instance_t with user for clarity ckolivas 2015-01-29 11:27:29 +1100
  • 192c2d0dbc Replace all uses of the term instance for stratum_instances to client to avoid confusion ckolivas 2015-01-29 11:16:08 +1100
  • 54cf34a353 Rename stratum instances clients to avoid confusion ckolivas 2015-01-29 11:08:14 +1100
  • 19ca4d0f8c Silence unused warning ckolivas 2015-01-29 09:06:01 +1100
  • b584cd0654 Don't try to respawn dead processes for now Con Kolivas 2015-01-28 20:16:09 +1100
  • f85d87b93c Push version to 0.8.4 Con Kolivas 2015-01-28 19:35:21 +1100
  • b0374a8785 php - increase page light limits kanoi 2015-01-28 19:05:00 +1100
  • 98aa9b66fe Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-28 18:58:39 +1100
  • 4f0c7795fe php - LQ iDevice menus kanoi 2015-01-28 18:58:05 +1100
  • 71e6481dc6 Don't try to grab stats from ckdbq in standalone mode ckolivas 2015-01-28 14:19:03 +1100
  • 0ab5f4c0a1 Do not reconnect to an instance that still holds a reference ckolivas 2015-01-28 10:55:50 +1100
  • 2574d44385 Every common use of the share lock uses only the write lock so convert it to a mutex ckolivas 2015-01-28 10:35:59 +1100
  • cf516c96e7 Refuse auth attempts for progressively longer periods on failed attempts up to a maximum of 10mins Con Kolivas 2015-01-27 20:19:20 +1100
  • 21c7fcb2c2 Do not grab the cdata lock in the connector when sending data as false negatives are safe Con Kolivas 2015-01-27 19:57:34 +1100
  • 44c990a589 Handle present but drop tagged client properly and don't leak the smsg ram Con Kolivas 2015-01-27 19:52:45 +1100
  • c9c6f1175d Don't try to add a new stratum instance for a client already on one of the dropped lists Con Kolivas 2015-01-27 18:22:28 +1100
  • 52b81dfe22 Match to existing worker instance from the userlist, not the client list which gets emptied Con Kolivas 2015-01-27 15:40:28 +1100
  • ad622680cb Rename user instance user in generate_user for clarity Con Kolivas 2015-01-27 15:11:47 +1100
  • 0c1fd0c865 Do not create unnecessary ckdbqueue in standalone mode. Con Kolivas 2015-01-27 10:09:40 +1100
  • f261569922 Revert "Add message about lost ram in block solve and reject." Con Kolivas 2015-01-27 09:55:13 +1100
  • 2f2bcf5b37 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2015-01-27 09:42:33 +1100
  • b7f7e71f7a Make dealloc entirely a macro allowing the compiler to optimise out the pointer nulling if it's unneeded Con Kolivas 2015-01-27 09:41:04 +1100
  • 5ce2ad3ec2 Revert "Add a DL_DELETE_INIT to delete items from a DL list and NULL the prev/next pointers" Con Kolivas 2015-01-27 09:09:00 +1100
  • 5534bc9919 Remove delete_init usage which was an unnecessary attempt at fixing other issues Con Kolivas 2015-01-27 09:08:45 +1100
  • 0e2a690e97 ckdb - remove compile warning kanoi 2015-01-27 09:32:16 +1100
  • 7101cf74ea ckdb - remove duplicate variables kanoi 2015-01-27 08:58:18 +1100
  • 310595c478 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-27 08:22:58 +1100
  • 39f4fe06ce php - display pool uptime on Pool->Stats kanoi 2015-01-27 08:21:46 +1100
  • f01bb374b7 Dump the user stats to log in statsupdate outside of lock Con Kolivas 2015-01-26 22:27:30 +1100
  • 96280964ee Read user and workerstats from logs on standalone mode outside of lock Con Kolivas 2015-01-26 22:08:57 +1100
  • 923eb44796 Cache value of ssends Con Kolivas 2015-01-26 21:23:10 +1100
  • 102ed8748b Cache and use value of current_workbase in __stratum_notify Con Kolivas 2015-01-26 21:15:34 +1100
  • 309079238a Differentiate lock contention from failing to get a response in failed auth message Con Kolivas 2015-01-26 20:03:06 +1100
  • 15a4fd91a6 Add ckdbq entries outside of the instance lock in update_workerstats Con Kolivas 2015-01-26 18:36:42 +1100
  • 41c74985ce Print warning messages to console before attempting to log them in case of inability to write to the log Con Kolivas 2015-01-26 16:08:21 +1100
  • 6c2582fa3c Remove use of logdebug within __add_dead Con Kolivas 2015-01-26 15:59:49 +1100
  • c25f069902 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2015-01-26 15:58:10 +1100
  • d7417e9460 Move use of LOGINFO out of __stratum_add_instance Con Kolivas 2015-01-26 15:58:03 +1100
  • 9396a8d39e Remove use of LOGDEBUG within locks in del dead/disconnected Con Kolivas 2015-01-26 15:55:40 +1100
  • 603306739e Move log usage out of lock in drop_client Con Kolivas 2015-01-26 15:46:16 +1100
  • fd2369921a Move possible LOGINFO use out of lock usage in drop_client Con Kolivas 2015-01-26 15:21:22 +1100
  • 6b30cfc9d0 Move possible LOGERR usage ouf ot lock in __drop_client Con Kolivas 2015-01-26 15:19:31 +1100
  • 4e6612be31 Move logging out of lock in add_base Con Kolivas 2015-01-26 15:15:45 +1100
  • f3d3c11869 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-26 14:21:33 +1100
  • 6d94ddbad0 php - remove debugging kanoi 2015-01-26 14:20:55 +1100
  • 6c5293a786 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2015-01-26 14:09:18 +1100
  • 71917ed4da Do not send messages from the connector of clients we've already dropped Con Kolivas 2015-01-26 14:08:41 +1100
  • ef33a2e4de Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-26 14:07:20 +1100
  • 954660c708 ckdb/php - add status images to top left kanoi 2015-01-26 14:06:15 +1100
  • a102827cf9 Sanity test Con Kolivas 2015-01-26 13:17:57 +1100
  • 7b450f16b6 Add client reference from moment we receive a message Con Kolivas 2015-01-26 13:10:29 +1100
  • 404e43ebe4 Deauth client when asked to drop it Con Kolivas 2015-01-26 12:56:04 +1100
  • aa0086079f Use HASH_ITER in update_diff for clarity Con Kolivas 2015-01-26 11:15:57 +1100
  • f8e644e959 Optimise new_share for the common case where shares are new, minimising time under wlock Con Kolivas 2015-01-26 11:11:21 +1100
  • 61576761ba Avoid taking recursive locks in new_enonce1 in proxy mode Con Kolivas 2015-01-26 10:54:27 +1100
  • b40b47efb4 Age shares whose workbase id matches the one being aged Con Kolivas 2015-01-25 14:34:11 +1100
  • 3bbce63302 Generate connector stats on command Con Kolivas 2015-01-25 13:28:33 +1100
  • d6c57c0817 Do not check for thread shutdown on every pass through the connector Con Kolivas 2015-01-25 13:00:13 +1100
  • e64db6bb40 Fix memleak on each reject reason message Con Kolivas 2015-01-25 12:41:06 +1100
  • 94f6236d3c Optimise json malloc strategy to minimise memory allocations and avoid unnecessary strdups Con Kolivas 2015-01-25 11:56:29 +1100
  • 4745e7d6e7 Merge branch 'master' of bitbucket.org:ckolivas/ckpool Con Kolivas 2015-01-25 00:39:06 +1100
  • b23dbab1a1 Use a doubly linked list for dead clients in the connector for O(1) removal Con Kolivas 2015-01-25 00:38:47 +1100
  • 3c3621cc43 Use delete_init on the DL lists used in stratifier for thoroughness Con Kolivas 2015-01-25 00:23:38 +1100
  • 49266178e5 Add a DL_DELETE_INIT to delete items from a DL list and NULL the prev/next pointers Con Kolivas 2015-01-25 00:16:18 +1100
  • 0f9e594dba Change dead instance linked list to doubly linked for O(1) removal Con Kolivas 2015-01-25 00:10:46 +1100
  • 55595f3855 ckdb/php - put the pool block # in the web block information kanoi 2015-01-24 17:57:38 +1100
  • 73cc2eb405 ckdb - breakdown() allow zero length string values kanoi 2015-01-24 15:21:39 +1100
  • 33e4af9a2d Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool kanoi 2015-01-24 15:12:35 +1100
  • 373bf7749f ckdb - report reload total lines per second kanoi 2015-01-24 15:07:23 +1100
  • 8ec6f3ce11 Add ckmsgq stats to stratifierstats. Con Kolivas 2015-01-24 14:14:49 +1100
  • 9aa281539d ckdb - direct code a json decode replacement for breakdown() kanoi 2015-01-24 13:28:55 +1100
  • a44d00bf43 Maintain a count of messages used in ckmsgq Con Kolivas 2015-01-24 13:07:50 +1100
  • b188ec8a9c Add share stats to stratifierstats Con Kolivas 2015-01-24 12:38:39 +1100
  • 0e5c5af1e6 Create basic stratifier stats reporting on command Con Kolivas 2015-01-24 12:34:22 +1100
  • cced9e43b2 Add a helper function to libckpool for setting a json object Con Kolivas 2015-01-24 11:32:47 +1100
  • 39fcdb8848 Change stratifier disconnect/drop message to not appear to be the server doing the disconnecting Con Kolivas 2015-01-24 10:52:41 +1100
  • 7cd351782e Push version to 0.8.3 Con Kolivas 2015-01-24 10:21:38 +1100
  • 3bce852a28 Null the source pointer that calls jsonp_free generically as a sanity precaution. ckolivas 2015-01-24 09:44:43 +1100