158 Commits (fa4eba720b71a13c33dce88c487915828fd6854e)

Author SHA1 Message Date
Con Kolivas 432d1ce4d5 Don't treat POLLRDHUP as fatal unless we can't receive data after it, and return errors from wait_select functions when they close the socket 9 years ago
Con Kolivas b622a6ec8d Check for errors in wait_read_select, closing the socket if they occur, and add a variant for non-unix sockets that checks for hangups as well 9 years ago
Con Kolivas 8c474c1784 Support low diffs like those on testnet 9 years ago
Con Kolivas c1f812effc Fix extremely unlikely race on fd being accessed before it is set to -1 on closing 9 years ago
Con Kolivas 3f83abab8d Fix url_from_socket to work with IPV6 sized names 9 years ago
kanoi 0608a79f14 libckpool - report errno with _recv_unix_msg errors 10 years ago
kanoi e7aa081d43 libckpool - report errno with _write_length failure 10 years ago
Con Kolivas e94115d6e2 Allow _send_recv_proc to take custom timeouts 10 years ago
Con Kolivas aa8460c0ba Set default unix read timeout back to 5 seconds except for ckpmsg and ckdb which need the 30s defaults, and double the write timeout 10 years ago
Con Kolivas f791495889 Move failure warnings into write_length, importing source details and adding info about type of failure 10 years ago
Con Kolivas 39e1e07749 Add push 20 bytes to stack in address_to_scripttxn 10 years ago
Con Kolivas 2aa93069cc Implement rudimentary untested address to script transaction support in the generation code 10 years ago
Con Kolivas 6cd2778477 Add a helper function for converting an M of N script address to a transaction 10 years ago
Con Kolivas 85a08ce3ab Increase precision of wait read/write select to accept floats 10 years ago
Con Kolivas 22ece7b96c Revert "Don't use MSG_WAITALL on unix sockets" 10 years ago
Con Kolivas 6e7f39321d We are not interested in POLLIN in wait_close but any mode of a closed socket 10 years ago
Con Kolivas 2cc42376bd Check also for POLLRDHUP in wait/read write select helpers 10 years ago
Con Kolivas 24d89a3e72 Don't use MSG_WAITALL on unix sockets 10 years ago
ckolivas 57e3aa83c6 Differentiate pollin from pollhup in wait_read_select 10 years ago
ckolivas 8313628629 Differentiate ready for writes from hangups in wait_write_select 10 years ago
Con Kolivas 431234a3d6 Remove option of using precarious intermediate variants of cklocks 10 years ago
Con Kolivas 85b17f1b78 Check for correct condition in wait_close 10 years ago
Con Kolivas 90c682177f Wait for the other end to close a unix socket to ensure the message has gone through 10 years ago
Con Kolivas 42f14a9536 Add full lock tracking for mutexes and rwlocks 10 years ago
Con Kolivas 7b452b361f Remove macro placeholders for locks in preparation for implementing lock tracking 10 years ago
Con Kolivas c572d580eb Add lock contention testing warning at 10 seconds to all lock grabbing and fail if a lock is unable to be grabbed for more than a minute 10 years ago
Con Kolivas 0f08e9518f Add helpers for rw timed locks 10 years ago
Con Kolivas b7f7e71f7a Make dealloc entirely a macro allowing the compiler to optimise out the pointer nulling if it's unneeded 10 years ago
Con Kolivas 827f42ba73 Fix impossible >= UNIX_PATH_MAX warning 10 years ago
Con Kolivas cc0d188573 Fix impossible len >= UNIX_PATH_MAX warning 10 years ago
Con Kolivas ff01a1c414 Fix impossible sockd < 1 scenario 10 years ago
Con Kolivas 09c7086808 Fix impossible patch -p1 -i crap.patch warning in bind_socket 10 years ago
Con Kolivas e5b9e84129 Add a helper function to check a hex string is valid 10 years ago
Con Kolivas 8622718c48 Make jansson use ckalloc for its malloc 10 years ago
Con Kolivas 11208274b1 Keep retrying indefinitely with backoff after a malloc failure instead of quitting, with a message directly to stderr 10 years ago
Con Kolivas 098930afd5 Add a completion timeout helper function 10 years ago
Con Kolivas 3e335c3b38 Abort any functions on signal handling, cleaning up cksem functions 10 years ago
Con Kolivas 65f52112ba Confirm all handed over sockets match the configured sockets 10 years ago
Con Kolivas be87144fe1 Provide a helper function for turning a socket into a url and port 10 years ago
Con Kolivas 540db4f5a9 Free the addrinfo allocated in bind_socket 10 years ago
Con Kolivas 02dfda6814 Add a helper function for getting an addinfo from a url and port 10 years ago
Con Kolivas e5f26443af Make url from sockaddr take port as a char 10 years ago
Con Kolivas 6d40647334 Add a helper function for converting a struct sockaddr into a url and port 10 years ago
Con Kolivas 06507de1fc Handle read and write_length functions receiving an invalidated fd 10 years ago
Con Kolivas c9dd84fac2 Handle invalidated socket fds with an error in the wait read/write select functions 10 years ago
Con Kolivas 615e9e8b22 Handle read and write_length functions receiving an invalidated fd 10 years ago
Con Kolivas 480c705e96 Handle invalidated socket fds with an error in the wait read/write select functions 10 years ago
kanoi 063d723a31 allow ckpmsg to set the unix recv timeout 10 years ago
Con Kolivas c87ad0b239 Do not double close socket sent to get_fd 10 years ago
Con Kolivas d1e08ac9c2 Add source debugging to close failure 10 years ago