Con Kolivas
|
3919d18260
|
Rework write path to have no potentially blocking calls and be able to send partial messages
|
10 years ago |
Con Kolivas
|
1efe7120c4
|
Use ref_client_by_id in send_client instead of open coding it
|
10 years ago |
Con Kolivas
|
ec39117a1c
|
Don't return client if it is invalid in ref_client_by_id in the connector
|
10 years ago |
Con Kolivas
|
0395dd052f
|
Use the client reference count in the connector to protect the client fd, closing it only once there are no more references to it
|
10 years ago |
Con Kolivas
|
9375362044
|
Revert "Use a unique event structure for each client added to the epoll list"
This reverts commit 8f1336986f .
Unnecessary.
|
10 years ago |
Con Kolivas
|
8f1336986f
|
Use a unique event structure for each client added to the epoll list
|
10 years ago |
Con Kolivas
|
6a159bf5dc
|
We won't get no error if we are not testing fd -1 sockets any more, and use errno for consistent parsing of socket close errors
|
10 years ago |
Con Kolivas
|
c6ae644d53
|
Merge branch 'master' of bitbucket.org:ckolivas/ckpool
|
10 years ago |
Con Kolivas
|
62d1ec3f8a
|
Use signal handlers from sender and receiver threads in the connector avoid needing to pthread tryjoin on every message
|
10 years ago |
Con Kolivas
|
2bde0bbe3d
|
Avoid trying to parse messages or test the client's error if their fd has already been invalidated
|
10 years ago |
ckolivas
|
2561eff1cb
|
Update user auth time on each successful auth
|
10 years ago |
Con Kolivas
|
d0f7ec7c35
|
Decrease verbosity of missing client warning in receiver, adding id number to the output
|
10 years ago |
Con Kolivas
|
4f6776a4c3
|
Allow specifying of the socket name to use in ckpmsg
|
10 years ago |
Con Kolivas
|
fd73ebe3ae
|
Send port number as a string on reconnect as most clients will be expecting it
|
10 years ago |
Con Kolivas
|
94dbd802a2
|
Wait longer after kill message
|
10 years ago |
Con Kolivas
|
22ece7b96c
|
Revert "Don't use MSG_WAITALL on unix sockets"
This reverts commit 24d89a3e72 .
Do use it...
|
10 years ago |
Con Kolivas
|
6c0c7dd7c4
|
Rework parse_client_msg to use the non blocking recv return values avoiding the need for an extra wait_read_select
|
10 years ago |
Con Kolivas
|
84ca31fcca
|
Drop stratifier id when client id is not found in connector
|
10 years ago |
Con Kolivas
|
5633f8365d
|
Prevent theoretical read out of bounds
|
10 years ago |
Con Kolivas
|
93d5760b2d
|
Set server to the passthrough server client in passthrough mode
|
10 years ago |
Con Kolivas
|
e095ba4b49
|
Mask out error 0 in socket error messages
|
10 years ago |
Con Kolivas
|
3f3dc7f4f3
|
Implement a stratum mining.term call which notifies the stratifier this client is terminating and use it to signal upstream pools when passthrough subclients have disconnected
|
10 years ago |
Con Kolivas
|
e9441f2e1a
|
Drop passthrough proxy connection from stratifier
|
10 years ago |
Con Kolivas
|
8bb50fa058
|
Process epoll read messages before hangups and errors and add more info about the type of hang up, increasing verbosity when it's an unexpected error
|
10 years ago |
Con Kolivas
|
0b96be0144
|
Use non blocking receive in parse_client_msg as we check for read readiness with wait_read_select first, and there is the unlikely event the state changes
|
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 |
Con Kolivas
|
da2f62aea9
|
Pass through the downstream clients' address and server
|
10 years ago |
Con Kolivas
|
ae2b00842b
|
Allow unauthorised clients to send other messages till they've authorised but silently ignore them
|
10 years ago |
kanoi
|
040dddc6ec
|
ckdb - allocate seqnam with the full name and use it
|
10 years ago |
Con Kolivas
|
bf72ebbee6
|
Reinstate checking for zero as a return from recv for cleanly disconnected clients
|
10 years ago |
Con Kolivas
|
52a380a90b
|
Merge branch 'master' of bitbucket.org:ckolivas/ckpool
|
10 years ago |
Con Kolivas
|
70379428d6
|
Steal copied id_vals in the stratifier to avoid needing to copy them again, thus allowing opaque objects to be used as id values
|
10 years ago |
kanoi
|
20397ff4a4
|
Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool
|
10 years ago |
kanoi
|
1c32d78295
|
ckdb - remove 'maybe'-not warnings by NULLing variables
|
10 years ago |
Con Kolivas
|
75d24d1d07
|
Reference clients in the epoll list by their client id to avoid double lookup and possible wrong client selection
|
10 years ago |
Con Kolivas
|
88fcb55faa
|
Revert "Check clients match in epoll loop"
This reverts commit b50f2ba86c .
Wrong
|
10 years ago |
Con Kolivas
|
138f5f99ac
|
Merge branch 'master' of bitbucket.org:ckolivas/ckpool
|
10 years ago |
Con Kolivas
|
b50f2ba86c
|
Check clients match in epoll loop
|
10 years ago |
Con Kolivas
|
e012108280
|
Explicitly check for EPOLLRDHUP as well
|
10 years ago |
kanoi
|
a83c283b1f
|
ckdb - report the set number of new seqsets
|
10 years ago |
kanoi
|
c43375e1ac
|
ckdb - text typo
|
10 years ago |
kanoi
|
3a8b793fbb
|
Merge branch 'master' of https://bitbucket.org/ckolivas/ckpool
|
10 years ago |
kanoi
|
1d25cb88b0
|
ckdb - ensure expected duplicates are debug only and don't stop the reload early
|
10 years ago |
ckolivas
|
91d2aca51f
|
Detect pollhup in wait_read_select and not through recv fail conditions
|
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 |
ckolivas
|
49ce587949
|
nolinger client sockets when we're about to close them
|
10 years ago |
kanoi
|
caeee9b322
|
ckdb - add klist insert_after and general null checking to report calling line
|
10 years ago |