149 Commits (6c47d61bb1563f6ef96f761098d9cf95efbf4952)

Author SHA1 Message Date
Con Kolivas fc1d956f37 Make a per-process logger allowing logging to be line buffered yet asynchronous 10 years ago
kanoi c1de7286d7 ckpool - add timestamps to screen log 10 years ago
Con Kolivas dd056cd030 Provide an option to run ckpool standalone without ckdb 10 years ago
Con Kolivas 1e81ac7887 Convert command line to accept long options that are also self documenting with -h 11 years ago
kanoi fb3eeac022 ckpool - add json_str NULL to error detection 11 years ago
kanoi e51a5a7afd ckpool - attempt to identify json error passed to _json_ckdb_call 11 years ago
ckolivas 34d77bd3b9 Make significant floating point errors fatal to avoid subtle bugs being missed 11 years ago
ckolivas 61e8c46ee5 Don't fclose the log file on cleanup in case we still send mesages to the log file. The OS will close it on shutdown anyway. 11 years ago
ckolivas a092fd91a4 Forgot to set return value in read_socket_line 11 years ago
ckolivas e789416b17 Fix unused variable warnings 11 years ago
ckolivas b6e9d18bfc Handle signal interruptions on all poll and select calls 11 years ago
ckolivas a8eee6f0a3 We cannot intercept signal 9 11 years ago
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