Commit Graph

1135 Commits

Author SHA1 Message Date
kanoi
e49a2011de ckdb - fix password reset always false 2014-10-06 12:11:42 +11:00
kanoi
2f501e9d9e ckdb/php - add all pool hash rates to pool stats 2014-10-06 11:51:47 +11:00
kanoi
8146f4d748 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-10-04 23:17:00 +10:00
kanoi
68dfd2ddbc php - always use 5min hash rate for pool top left 2014-10-04 23:16:39 +10:00
Con Kolivas
b08f4bcb69 Drop clients lazily when the proxy is full 2014-10-04 14:57:42 +10:00
Con Kolivas
1b45079802 Keep track of clients that submit a run of continuous rejects and send them a diff update if they do it for longer than 1 minute and then lazily drop them if it goes beyond 2 minutes 2014-10-04 14:51:36 +10:00
Con Kolivas
0c16e193ce Set no linger on all connected clients 2014-10-04 10:09:28 +10:00
Con Kolivas
8e29c957e0 Add helper function to set no linger 2014-10-04 10:06:19 +10:00
Con Kolivas
7d878bd223 Force close when dropping a client with a reset using SO_LINGER and give a warning on close failure 2014-10-04 03:13:04 +10:00
Con Kolivas
146e3140f3 Add client source port to verbose logging 2014-10-03 23:07:55 +10:00
Con Kolivas
5c6e048a2e Poll every 100ms instead of every second in the connector to rapidly pick up new clients 2014-10-03 22:57:27 +10:00
Con Kolivas
26b4037eff Log a warning if a client with an invalidated fd is still in the fdclients hashtable 2014-10-03 22:41:32 +10:00
Con Kolivas
3bf4e0de8d Always send dropclient to the stratifier on every invalidate client call 2014-10-03 22:38:16 +10:00
Con Kolivas
1f68a5a98b Use the Close handler in the stratifier 2014-10-03 22:20:56 +10:00
Con Kolivas
5a9eb76488 Use the Close handler in the generator 2014-10-03 22:20:47 +10:00
Con Kolivas
7da6c0b2a0 Use the Close handler in connector.c 2014-10-03 22:20:40 +10:00
Con Kolivas
e683fa42b6 Use the Close handler in ckpool.c 2014-10-03 22:20:33 +10:00
Con Kolivas
bae2493346 Add a helper for close which invalidates the file handle as well 2014-10-03 22:20:25 +10:00
Con Kolivas
070a1a3b3e Cache reused bias calculations 2014-10-03 15:28:49 +10:00
Con Kolivas
86f72ff889 Keep rereading in parse_client_msg if the socket indicates it is still ready for further reads 2014-10-03 14:10:26 +10:00
Con Kolivas
8d625b736b Revert "Close polled fds that are ready for reads but no longer have a client associated with them"
This reverts commit f6f61e8870.
2014-10-03 12:45:52 +10:00
Con Kolivas
6acb482e7a Bias workers as well as users 2014-10-03 12:23:34 +10:00
Con Kolivas
6ba4cf50a5 There is no need to bias 60 second times, and we should bias worker stats 2014-10-03 12:15:11 +10:00
Con Kolivas
f0f948171a Invalidate interrupted clients and increase verbosity of messages logged 2014-10-03 12:04:58 +10:00
Con Kolivas
f6f61e8870 Close polled fds that are ready for reads but no longer have a client associated with them 2014-10-03 11:55:16 +10:00
Con Kolivas
48b2e72661 Rereading with dontwait is pointless and adds complexity 2014-10-03 10:36:33 +10:00
Con Kolivas
ae1f9827ac Revert "Always re-read with dontwait when parsing a client message"
This reverts commit e3b4d969d5.
2014-10-03 10:34:16 +10:00
Con Kolivas
e3b4d969d5 Always re-read with dontwait when parsing a client message 2014-10-03 10:31:52 +10:00
Con Kolivas
1e175d851c Missing valid but not submitted count for proxy 2014-10-03 09:57:27 +10:00
Con Kolivas
70393442a3 Zero bufofs in connector loop for completeness and make sure to retry if there is more data to read 2014-10-03 09:10:05 +10:00
Con Kolivas
53641a9c24 Prevent wb dereference in parse_submit 2014-10-03 09:04:15 +10:00
Con Kolivas
600e6923fc Count only accepted and stale rejects in diff calculation 2014-10-03 08:45:39 +10:00
Con Kolivas
0f7daecac4 Stats on 1st reject were being missed 2014-10-03 08:38:22 +10:00
Con Kolivas
2d6d982bb1 Add buf offset to disconnect message and reset flags on looping 2014-10-03 01:01:31 +10:00
Con Kolivas
a493539a75 Only add strerro if errno != 0 2014-10-03 00:54:21 +10:00
Con Kolivas
17d1455267 Add more info to disconnects 2014-10-03 00:52:09 +10:00
Con Kolivas
255bab88fe Add a maximum diff option 2014-10-03 00:07:43 +10:00
Con Kolivas
857462e16a Simplify the complicated sequential locking to pure choice of write or read in the stratifer 2014-10-02 23:20:06 +10:00
Con Kolivas
55ff1389ee Make ckpool built without ckdb support imply standalone and remove ckdb options when build support is disabled 2014-10-02 20:30:16 +10:00
kanoi
cfd5e4bd5c ckdb - ckdb_cmd comment update 2014-10-02 12:01:29 +10:00
kanoi
8a9c652065 Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-10-02 11:30:41 +10:00
kanoi
0abbed2cf6 ckdb - move remaining data code into ckdb_data 2014-10-02 11:24:31 +10:00
kanoi
ea8ee0d376 ckdb - fix warnings from code break up 2014-10-02 11:03:40 +10:00
Con Kolivas
49e465c8d5 Remove unnecessary extra step in disconnected_sessionid_exists 2014-10-02 02:24:18 +10:00
Con Kolivas
82be9e2cea Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-10-01 23:52:11 +10:00
Con Kolivas
00fc686bbf use a union for the split nonce2 values instead of open coding a pointer version 2014-10-01 23:51:15 +10:00
kanoi
1f16e05f1d Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-10-01 23:11:37 +10:00
kanoi
50b90b4046 ckdb - break up into parts 2014-10-01 23:09:29 +10:00
Con Kolivas
10777b6f25 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-10-01 23:03:58 +10:00
Con Kolivas
ba506f6262 Fix more 64bit print modifiers 2014-10-01 23:03:35 +10:00