Con Kolivas
|
9a18981725
|
Remove ckpool.h include from libckpool
|
11 years ago |
ckolivas
|
e8c47e29fa
|
Move generic ckmsgq functions to ckpool.c to allow ckp to be included
|
11 years ago |
ckolivas
|
997a88191c
|
Make create_ckmsgq return a pointer to the generated queue and export the ckdbq functions
|
11 years ago |
ckolivas
|
50463445c0
|
Create a set of generic queue receiving thread and processing functions
|
11 years ago |
kanoi
|
027668b84f
|
ckdb - homepage stats
|
11 years ago |
ckolivas
|
c3ce5321b0
|
Only close the rotating log once
|
11 years ago |
Con Kolivas
|
3107450281
|
recv_unix_msg can return a dud buffer on select failure
|
11 years ago |
Con Kolivas
|
db012ba9c2
|
Increase default listen backlog in libckpool open_unix_server to 10
|
11 years ago |
Con Kolivas
|
c4c9a7b2a6
|
Create a rotating log function that changes hourly with an exclusive lock while writing
|
11 years ago |
Con Kolivas
|
1ab6280eac
|
Don't try to empty a closed socket
|
11 years ago |
Con Kolivas
|
badfb12da2
|
Do not try to send messages from the main signal handler to the children processes since they'll detect main disappearing and do not try to pthread join a dead thread
|
11 years ago |
Con Kolivas
|
68eff4d6a1
|
Don't unlink the unix sockets to make it easier for processes to determine they are not being listened on
|
11 years ago |
Con Kolivas
|
6c4abba93c
|
Provide a way to send binary data over unix sockets
|
11 years ago |
Con Kolivas
|
19c31ad0c3
|
Fix inappropriate json object stealing
|
11 years ago |
Con Kolivas
|
251ac7e7fe
|
Be more generous with socket connect timeouts
|
11 years ago |
Con Kolivas
|
93735544ca
|
Add debugging to hex2bin to know where it failed from
|
11 years ago |
Con Kolivas
|
4121560bad
|
Use MSG_WAITALL on reads to more reliably detect closed unix sockets
|
11 years ago |
Con Kolivas
|
b77e481c7e
|
Use a weak logmsg function within libckpool allowing it to be included standalone without touching ckpool code
|
11 years ago |
Con Kolivas
|
bc78acceca
|
Move the functions that require ckpool specific variable types out of libckpool
|
11 years ago |
Con Kolivas
|
ed341c9502
|
Create the beginnings of a separate tool to talk to ckpool sockets
|
11 years ago |
Con Kolivas
|
86e70edfbc
|
Make all child processes ping the parent process at regular intervals and then die if it has disappeared. Do not attempt to send unix messages to dead processes and abort instantly on socket EINTR
|
11 years ago |
Con Kolivas
|
d4e6668865
|
Fix minor uninitialised ram and leak issues
|
11 years ago |
Con Kolivas
|
a3a586ee6e
|
Use the retry on EINTR only on unix sockets
|
11 years ago |
Con Kolivas
|
306392950f
|
Zero the read buffer fully in read_socket_line and handle closed sockets gracefully
|
11 years ago |
Con Kolivas
|
24643e9ba0
|
Get the network difficulty from the block header and use that to determine possible block solves in proxy mode
|
11 years ago |
Con Kolivas
|
ed8f73a426
|
Unix message failures are almost always fatal so add debugging about where the functions were called from
|
11 years ago |
Con Kolivas
|
1ac5fec1ee
|
Timeout in 5 seconds on the stratum read socket allowing us to detect closed connections sooner
|
11 years ago |
Con Kolivas
|
4f60dc1b8a
|
Provide a way to extract a serialised integer
|
11 years ago |
Con Kolivas
|
54883b37fd
|
Make read_socket_line accept a timeout in seconds
|
11 years ago |
Con Kolivas
|
dacb261ad5
|
Store the proxy method results in a unique struct and add it to a hashtable of notifications
|
11 years ago |
Con Kolivas
|
6ac33e57ac
|
Create initial stratum proxy connection
|
11 years ago |
Con Kolivas
|
e3fef890a0
|
Provide helpers for writing/selecting on a socket
|
11 years ago |
Con Kolivas
|
5e15e80327
|
Provide helpers for waiting on and reading a certain amount on a socket
|
11 years ago |
Con Kolivas
|
a864914b93
|
Remove all yields from unlocking functions since we'll always be running on multicore machines
|
11 years ago |
Con Kolivas
|
a615b56d76
|
Install signal handlers which push the signal to the top process which will try to gracefully shut down each child process
|
11 years ago |
Con Kolivas
|
457f1c17ee
|
Create a separate thread for sending messages to clients, not blocking on any clients not ready for reads
|
11 years ago |
Con Kolivas
|
d1805df4e0
|
Fix limited size of http requests to fit any size block submissions
|
11 years ago |
Con Kolivas
|
1a5aa1874d
|
Be far more generous when waiting on read_socket_line
|
11 years ago |
Con Kolivas
|
7d97ead8aa
|
Return the correct failure type in recv_unix_msg
|
11 years ago |
Con Kolivas
|
fefe13e929
|
Check for no response in the listener thread and allow 1 minute timeouts for receiving messages
|
11 years ago |
Con Kolivas
|
9db3db3b8b
|
Enable keepalive and nodelay for remote clients and remove mistaken setting of noblock, and add reuseaddr option to sockets
|
11 years ago |
Con Kolivas
|
e946665023
|
Create stratum receive/send threads that will use their own hashtables and conditionals to do work
|
11 years ago |
Con Kolivas
|
55b8e8424a
|
Add connector process which will process all remote communications
|
11 years ago |
Con Kolivas
|
9e92be3f5e
|
Use a longer timeout for reading a socket line, along with a select timeout on each loop through the read function to increase reliability over network connections
|
11 years ago |
Con Kolivas
|
2b1f9510cf
|
Add a block update thread that polls bitcoind regularly for the latest hash and handle failed json requests as closed sockets
|
11 years ago |
Con Kolivas
|
b65c555d87
|
Decode the generator response and store the variables in the stratifier
|
11 years ago |
Con Kolivas
|
1953cd2935
|
Add helper functions for sending/receiving to a process instance
|
11 years ago |
Con Kolivas
|
945c730447
|
Add and test a getbase function of the generator process
|
11 years ago |
Con Kolivas
|
eb041c331f
|
Use a consistent method for sending/receiving messages across unix sockets
|
11 years ago |
Con Kolivas
|
0da6336602
|
Fix gbt base generation, be more flexible with reading lines from socket, and add gbtbase clearing function
|
11 years ago |