Con Kolivas
|
b289046ffe
|
Demote the socket file exists message to notice level
|
11 years ago |
Con Kolivas
|
e40128a2da
|
Allow the loglevel to be changed on the fly
|
11 years ago |
Con Kolivas
|
93ecc3a5c8
|
Convert the authoriser and share processor to using the generic ckmsg queues and fix the data passed to the queue function
|
11 years ago |
ckolivas
|
e8c47e29fa
|
Move generic ckmsgq functions to ckpool.c to allow ckp to be included
|
11 years ago |
ckolivas
|
1874d6e136
|
Send a message back from the listener under all circumstances
|
11 years ago |
ckolivas
|
10baacbeee
|
Use only one fprintf in console logging to minimise risk of overlap
|
11 years ago |
ckolivas
|
c80af8bc56
|
Remove file log flushing from within the flock to not delay other code waiting on logging
|
11 years ago |
ckolivas
|
2b9062b44e
|
Only show errno if it's not zero
|
11 years ago |
Con Kolivas
|
d83a6cdcde
|
Realloc the correct variable
|
11 years ago |
Con Kolivas
|
4e02dd4213
|
Fix missing break in switch
|
11 years ago |
Con Kolivas
|
924b86b700
|
Create ckdb sockdir if it's not present and change permissions to 750
|
11 years ago |
Con Kolivas
|
91e2b3c942
|
Remove the method from the command we send to ckdb and put it at the beginning of the message
|
11 years ago |
Con Kolivas
|
645b94c949
|
Log all ckdb requests to the rotating ckdb log
|
11 years ago |
Con Kolivas
|
09f0586243
|
Add all messages that we don't need to wait for the ckdb response to a separate thread message queue and cache them if ckdb is unresponsive
|
11 years ago |
Con Kolivas
|
0ce603c9e5
|
Change message to ckdb to id.
|
11 years ago |
Con Kolivas
|
333d05fb3a
|
Create a json sending wrapper for ckdb and fix int64 usage in packed json
|
11 years ago |
Con Kolivas
|
1debfd1f45
|
Send auth and share messages to ckdb
|
11 years ago |
Con Kolivas
|
73599ea10d
|
Add a function for sending a message to ckdb and getting its response
|
11 years ago |
Con Kolivas
|
5f5ef3c712
|
Parse and store the socket directory and name for ckdb
|
11 years ago |
Con Kolivas
|
ebb932691a
|
Allow group id to be set for unix sockets with -g command line parameter
|
11 years ago |
Con Kolivas
|
fa8b0b0b6f
|
Unnecessary sleep now
|
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
|
ca805e44f0
|
Provide a getfd function for getting the main connector file descriptor for seamless restarts
|
11 years ago |
Con Kolivas
|
4ae647b1dd
|
Empty the buffer on empty socket
|
11 years ago |
Con Kolivas
|
76921ce29f
|
Fix end of message parsing logic fail
|
11 years ago |
Con Kolivas
|
a9c4c1690d
|
Allow select to modify the timeout instead of it being reset on each pass through the read loop
|
11 years ago |
Con Kolivas
|
dbffb29300
|
Append the null byte to the buffer before searching for the end of message marker
|
11 years ago |
Con Kolivas
|
cc358038dd
|
Don't allocate extra memory in case it generates a false end of message marker
|
11 years ago |
Con Kolivas
|
a25dc8ab50
|
Don't toss out the buffer in read_socket_line if we just timed out
|
11 years ago |
Con Kolivas
|
655be56b3d
|
Don't reuse buffer pointer directly in read_socket_line
|
11 years ago |
Con Kolivas
|
75f330d468
|
Rework read_socket_line to keep reading while data is available
|
11 years ago |
Con Kolivas
|
98aec22e09
|
Close clean shut down sockets in read_socket_line and invalidate the fd
|
11 years ago |
Con Kolivas
|
b57ffe23d6
|
Use one buffer for connsok line receives without relying on MSG_PEEK and abort appropriately when recv() returns 0
|
11 years ago |
Con Kolivas
|
352792758c
|
Send SIGTERM to the parent process on a failure to send a message to a sub process
|
11 years ago |
Con Kolivas
|
d66fde2185
|
Make the main listener socket always return a response and create a message input/sending loop in ckpmsg
|
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
|
b4e6aef470
|
Log all output to a logfile, display all warnings, and use locking to prevent overlapped messages
|
11 years ago |
Con Kolivas
|
f48558d2b5
|
Detach child processes from the tty leaving only the main process to talk to it and exit all processes in a consistent way with more information on termination
|
11 years ago |
Con Kolivas
|
923a4abe59
|
Don't bother sending the listener the shutdown message since the signal handler will kill off the main thread
|
11 years ago |
Con Kolivas
|
da435ac22b
|
Handle process exiting in the watchdog by shutting down
|
11 years ago |
Con Kolivas
|
8af64746bf
|
Change config format to take url auth and pass for both btcd and proxy and choose which to use in the generator based on proxy bool
|
11 years ago |
Con Kolivas
|
0256ad517b
|
Accept an array of entries for bitcoinds and take initial values for proxying
|
11 years ago |
Con Kolivas
|
78c1b2dfda
|
Make process instances an array within the ckpool struct allowing us to enable only those we need when we add more modules to future code
|
11 years ago |
Con Kolivas
|
08326b2d09
|
More explicit message
|
11 years ago |
Con Kolivas
|
8631f33809
|
Accept ping requests on the various unix sockets
|
11 years ago |
Con Kolivas
|
686d6da799
|
Send shutdown messages to the listener thread on watchdog shutdown or signal handling
|
11 years ago |
Con Kolivas
|
75db39209f
|
Abort trying to relaunch processes if we're relaunching them too fast
|
11 years ago |