192 Commits (48eb9a9ee909fbb6889d3fa585b64c5116e5c917)

Author SHA1 Message Date
Con Kolivas 0c16e193ce Set no linger on all connected clients 10 years ago
Con Kolivas 7d878bd223 Force close when dropping a client with a reset using SO_LINGER and give a warning on close failure 10 years ago
Con Kolivas 146e3140f3 Add client source port to verbose logging 10 years ago
Con Kolivas 5c6e048a2e Poll every 100ms instead of every second in the connector to rapidly pick up new clients 10 years ago
Con Kolivas 26b4037eff Log a warning if a client with an invalidated fd is still in the fdclients hashtable 10 years ago
Con Kolivas 3bf4e0de8d Always send dropclient to the stratifier on every invalidate client call 10 years ago
Con Kolivas 7da6c0b2a0 Use the Close handler in connector.c 10 years ago
Con Kolivas 86f72ff889 Keep rereading in parse_client_msg if the socket indicates it is still ready for further reads 10 years ago
Con Kolivas 8d625b736b Revert "Close polled fds that are ready for reads but no longer have a client associated with them" 10 years ago
Con Kolivas f0f948171a Invalidate interrupted clients and increase verbosity of messages logged 10 years ago
Con Kolivas f6f61e8870 Close polled fds that are ready for reads but no longer have a client associated with them 10 years ago
Con Kolivas 48b2e72661 Rereading with dontwait is pointless and adds complexity 10 years ago
Con Kolivas ae1f9827ac Revert "Always re-read with dontwait when parsing a client message" 10 years ago
Con Kolivas e3b4d969d5 Always re-read with dontwait when parsing a client message 10 years ago
Con Kolivas 70393442a3 Zero bufofs in connector loop for completeness and make sure to retry if there is more data to read 10 years ago
Con Kolivas 2d6d982bb1 Add buf offset to disconnect message and reset flags on looping 10 years ago
Con Kolivas a493539a75 Only add strerro if errno != 0 10 years ago
Con Kolivas 17d1455267 Add more info to disconnects 10 years ago
Con Kolivas 3d6601d20c Maximise the nonce2 size in proxy mode and ensure we don't clash enonce1 instances, rejecting clients when there is no more space available 10 years ago
Con Kolivas ffb054c95a Show all connector messages in debug mode 10 years ago
Con Kolivas 873b1b702a Reattempt sending delayed sends immediately after servicing one send successfully. 10 years ago
Con Kolivas 55f8d2d2dd Use int64_t lookups in uthash and fix some cosmetic errors with integers 10 years ago
Con Kolivas 17a4cab86c Off by one error on new connections 10 years ago
Con Kolivas 00f08eed05 Make client id use the passthrough id as high bits of a 64bit version of the client id to determine the intrinsic stratum client versus the connected client 10 years ago
Con Kolivas b1ae420fd3 Pass through message to relevant processes with separate threads in passthrough mode 10 years ago
Con Kolivas 6f12bd51a2 Process mining.passthrough as a subclass of proxy and set up handling of clients in preparation for passthrough routing 10 years ago
Con Kolivas 0fb34986dd Abandon trying to mix delayed sends with new ones, instead adding them to a separate linked list and always polling every 100ms 10 years ago
Con Kolivas 3b3ff68090 Only poll in the connector sender loop if the top of the list is a delayed writer 10 years ago
Con Kolivas 611a06b31f Make sure to check the pthread conditional when polling for stalled sends since there will always be a send in the list 10 years ago
Con Kolivas c650382b2d Discard messages being sent to clients who error on select 10 years ago
Con Kolivas 30df779bfa Polling on a blocked writer should be 100ms not 1ms 10 years ago
Con Kolivas 73e807a6b6 Don't extract sockaddr when we have an old fd 10 years ago
Con Kolivas 61bc8628f3 Implement a handover option which allows ckpool to inherit the socket from a running instance before shutting it down keeping miners talking to the existing connection 10 years ago
Con Kolivas a832b64006 Fix getfd function to really send a full struct msghdr returning a new fd to copy sockets across processes 10 years ago
Con Kolivas fd45d582d4 Add messages for when each process is ready 10 years ago
Con Kolivas 5d266a0faa Use cmdmatch in connector and ckpool 10 years ago
Con Kolivas f564714345 Poll more frequently when a client is not ready to be written to instead of waiting for it 10 years ago
Con Kolivas 5b2b4c73ef Remove all handling of interrupted calls which may have been blocking appropriate failure modes 10 years ago
Con Kolivas 06c106087a Demote client disconnected message 10 years ago
ckolivas a9e33c354a Pass the connector IP address to the stratifier to be stored in the client data and passed to ckdb on auth 11 years ago
Con Kolivas 1b387ad429 Add address name to loginfo output on new connector connection 11 years ago
ckolivas 5ea74680b6 Resolve the address name of new clients in the connector 11 years ago
ckolivas c9e7dd5780 We do not retry the accept call if it fails 11 years ago
ckolivas b6e9d18bfc Handle signal interruptions on all poll and select calls 11 years ago
Con Kolivas e40128a2da Allow the loglevel to be changed on the fly 11 years ago
Con Kolivas 1b3a972df2 Don't start receiving data till we are accepting connections in the connector 11 years ago
Con Kolivas d96b111653 Send a message from the generator to the connector to tell it when it can accept or should reject incoming connections 11 years ago
Con Kolivas 50efbcba5f Fix various warnings 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 20e056c4a1 Close sock in connector loop after we've finished using it 11 years ago