Commit Graph

1149 Commits

Author SHA1 Message Date
Con Kolivas
5fd152c370 Reverse logic 2014-10-07 15:05:06 +11:00
Con Kolivas
f3254ea170 Check for addrauth as well in send_recv_auth 2014-10-07 14:18:53 +11:00
kanoi
b7405adf48 correct password success message on a missing user 2014-10-07 13:34:04 +11:00
Con Kolivas
574d028d95 Parse the ckdb heartbeat response for setting worker mindiff 2014-10-07 13:17:56 +11:00
kanoi
351545f1ab ckdb - auth json reply should be authorise 2014-10-07 11:55:30 +11:00
kanoi
64ff56cb63 ckdb - reply to heartbeat with web diff change info 2014-10-07 11:54:01 +11:00
Con Kolivas
6a72525b8b Search for authorise in response instead of auth to match query 2014-10-07 10:55:41 +11:00
Con Kolivas
27ac4e23ef Parse the difficultydefault entry returned from authorise 2014-10-07 10:54:26 +11:00
Con Kolivas
3288b15622 Parse new auth command from ckdb 2014-10-07 10:29:59 +11:00
kanoi
e41d550b6f ckdb - auth return json with both secuserid and diff 2014-10-07 02:26:55 +11:00
kanoi
7f23fadeef Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-10-07 00:57:23 +11:00
kanoi
0d13eb4501 ckdb/php - set default diff to 0 meaning unset 2014-10-07 00:56:32 +11:00
Con Kolivas
995d4f3d04 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-10-06 12:20:00 +11:00
Con Kolivas
03878efb0e The stats on idle miners were being decayed with the wrong time interval so would appear to drop to almost zero on any idle period 2014-10-06 12:19:47 +11:00
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