Commit Graph

1160 Commits

Author SHA1 Message Date
Con Kolivas
be87144fe1 Provide a helper function for turning a socket into a url and port 2014-11-28 00:57:26 +11:00
Con Kolivas
540db4f5a9 Free the addrinfo allocated in bind_socket 2014-11-28 00:42:37 +11:00
Con Kolivas
02dfda6814 Add a helper function for getting an addinfo from a url and port 2014-11-28 00:41:18 +11:00
Con Kolivas
e5f26443af Make url from sockaddr take port as a char 2014-11-28 00:31:57 +11:00
Con Kolivas
6d40647334 Add a helper function for converting a struct sockaddr into a url and port 2014-11-28 00:24:58 +11:00
Con Kolivas
00f9cf297d Hand over multiple sockets if we can 2014-11-28 00:01:08 +11:00
Con Kolivas
65a6f4be5f Look for json messages for clients and process them first in the connector 2014-11-27 22:45:23 +11:00
Con Kolivas
19bf803b99 Clean up shutting down of old processes, polling for when they exit for faster handover 2014-11-27 22:14:16 +11:00
Con Kolivas
8d1af2b7fe Check for presence of main process before trying to ping it in case the socket is pointing a new process 2014-11-27 21:48:02 +11:00
Con Kolivas
2dc67ccc35 Drop listen backlog to zero as soon as we start polling 2014-11-27 19:33:30 +11:00
Con Kolivas
6a4da2814c Look for received json messages in the stratifier first since they'll be the most common 2014-11-27 19:28:33 +11:00
Con Kolivas
8371a398fe Merge branch 'master' into userstats
Conflicts:
	src/stratifier.c
2014-11-25 23:56:30 +11:00
Con Kolivas
c57782af25 Avoid variable names in json checking macros that may conflict 2014-11-25 23:32:46 +11:00
Con Kolivas
807d5a403c Only add secondaryuserid with ckdb 2014-11-25 23:25:58 +11:00
Con Kolivas
cb1e3b8637 Fine grain create the json share error to debug each field 2014-11-25 23:01:37 +11:00
Con Kolivas
26d9bd9e08 Merge branch 'master' into userstats 2014-11-21 20:32:26 +11:00
Con Kolivas
6ab9129bd6 Send the associated serverurl with client based data sent to ckdb 2014-11-21 20:31:18 +11:00
Con Kolivas
b8e125a1f7 Store which serverurl each client is bound to in the connector and pass the information to the stratifier 2014-11-21 20:27:52 +11:00
Con Kolivas
8d4a0f3fa7 Fix pointer 2014-11-21 20:02:37 +11:00
Con Kolivas
0f7b6c5a68 Make the connector bind to multiple IPs and Ports specified in the configuration, handling incoming connections 2014-11-21 17:36:04 +11:00
Con Kolivas
5dd076cfbe Allow serverurl to take an array of entries for future binding to multiple interfaces/ports 2014-11-21 16:36:22 +11:00
Con Kolivas
00fa820c3b Make the json_get functions return boolean for success or failure 2014-11-21 16:34:47 +11:00
kanoi
0c9ac579e5 ckdb - reduce transfer cull to compensate for the alloc increase 2014-11-21 10:37:48 +11:00
kanoi
a4fb2ca927 ckdb - allow the -w option to only affect sharesummaries 2014-11-21 10:34:42 +11:00
kanoi
98b52140b7 ckdb - load the marks table 2014-11-21 07:22:11 +11:00
kanoi
61318d9438 ckdb - pplns set block createdate to first block record 2014-11-20 23:35:21 +11:00
kanoi
941cba9b3b ckdb - convert sharesummary workername to a ptr - reduce ram ... lots 2014-11-20 10:15:33 +11:00
kanoi
5fe3dd77e2 ckdb/php - add more stats in pplns about where the shares come from 2014-11-20 08:57:07 +11:00
kanoi
71eac4e579 ckdb/sql - add sql/code definition for Marks - not implemented yet 2014-11-20 08:02:24 +11:00
kanoi
8e559ee48e Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool 2014-11-19 22:50:44 +11:00
kanoi
5a57d01911 ckdb - correct pplns workmarkers sort 2014-11-19 22:49:45 +11:00
Con Kolivas
79367129f3 Merge branch 'master' of bitbucket.org:ckolivas/ckpool 2014-11-19 21:36:40 +11:00
Con Kolivas
1d0d914d52 Store the fd in read_socket_line to not have it change under us, and empty the cs buffer on failure 2014-11-19 21:36:25 +11:00
Con Kolivas
61300493e7 Empty buffers of servers and proxy when killing them 2014-11-19 21:36:16 +11:00
Con Kolivas
06507de1fc Handle read and write_length functions receiving an invalidated fd 2014-11-19 21:36:07 +11:00
Con Kolivas
c9dd84fac2 Handle invalidated socket fds with an error in the wait read/write select functions 2014-11-19 21:35:58 +11:00
Con Kolivas
bbfadc3e47 Store the fd in read_socket_line to not have it change under us, and empty the cs buffer on failure 2014-11-19 21:34:40 +11:00
Con Kolivas
fe7f015ec6 Empty buffers of servers and proxy when killing them 2014-11-19 21:29:18 +11:00
Con Kolivas
615e9e8b22 Handle read and write_length functions receiving an invalidated fd 2014-11-19 21:25:33 +11:00
Con Kolivas
480c705e96 Handle invalidated socket fds with an error in the wait read/write select functions 2014-11-19 21:22:31 +11:00
kanoi
b231b158e6 ckdb/php - allow pplns to show blocks that can't be or aren't ready to be paid out 2014-11-19 08:47:59 +11:00
kanoi
180410913c ckdb - include workmarkers in old pplns calculations 2014-11-18 22:51:11 +11:00
kanoi
27b722e66e ckdb - allow disabling/enabling users 2014-11-18 18:24:19 +11:00
kanoi
5d522ddec8 ckdb - fail auth if users.status isn't empty 2014-11-18 12:49:29 +11:00
kanoi
7a8392bb1f ckdb - suggest to malloc to use mmap for transfer 2014-11-18 12:35:41 +11:00
kanoi
03efdd0332 ckdb - disallow web usernames like BTC addresses 2014-11-18 12:29:10 +11:00
Con Kolivas
0709058b25 Allow nonce1 and nonce2 lengths to be specified separately 2014-11-17 14:01:54 +11:00
Con Kolivas
721d6d22ab Set the initial enonce1 to a value that will differ on every restart 2014-11-17 13:57:40 +11:00
Con Kolivas
4391e71734 Merge branch 'master' into userstats 2014-11-16 09:36:19 +11:00
Con Kolivas
ab91682e22 Add support for custom extranonce1 lengths 2014-11-15 15:32:01 +11:00