Commit Graph

1161 Commits

Author SHA1 Message Date
Con Kolivas
a33dfd066a There is no need to place the clamp on lowering diff with suggest_diff since it is predomoninantly used at miner startup and we can rapidly adapt should it be too low anyway 2014-10-07 22:48:17 +11:00
Con Kolivas
ce49ea21ce Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-10-07 16:45:35 +11:00
Con Kolivas
c8a330dbd8 We should be doing a cmdmatch not a full string match for heartbeat commands 2014-10-07 16:45:18 +11:00
kanoi
3e972d7396 ckdb - disallow similar usernames due to case, and/or leading/trailing white space 2014-10-07 16:28:30 +11:00
Con Kolivas
4d69bd2423 Wrong test on result_val 2014-10-07 15:56:04 +11:00
Con Kolivas
e8179cd951 Drop log level for failed auth json decode failure 2014-10-07 15:53:04 +11:00
Con Kolivas
90ecaf33e7 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-10-07 15:52:15 +11:00
Con Kolivas
dd187da977 Add the server accept to the receiver's poll function, eliminating the need for short polls and one extra thread 2014-10-07 15:52:00 +11:00
kanoi
d0bad02a01 php - truncate btc usernames in the page header 2014-10-07 15:31:18 +11:00
Con Kolivas
fcfc06e77b More logic fail 2014-10-07 15:09:20 +11:00
Con Kolivas
d9e65a6936 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-10-07 15:05:18 +11:00
Con Kolivas
5fd152c370 Reverse logic 2014-10-07 15:05:06 +11:00
kanoi
24a3ff3eaf php - correct worker management diff wording 2014-10-07 14:32:26 +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