Doc,
There are some issues with blacklotus
I have rebooted my miners - 20 tplinks
Half of them connected just fine and working,
the other half are connecting to backup
cgminer + configs is equal to all of them
Is there some sort of connection limit per IP? I think yes. So it turns out that it is not enough for me...
Thanks
The issue:
.blacklotus.net (Or nginx proxy or whatever is there ) delays connection up to 120 secs
From other hand in cgminer code curl timeout value is set to 60 secs
So that was the core reason for issues
json_t *json_rpc_call(CURL *curl, const char *url,
const char *userpass, const char *rpc_req,
bool probe, bool longpoll, int *rolltime,
struct pool *pool, bool share)
{
long timeout = longpoll ? (60 * 60) : 60;
And this on sockets
FD_ZERO(&rd);
FD_SET(pool->sock, &rd);
timeout.tv_sec = 90;
timeout.tv_usec = 0;
/* The protocol specifies that notify messages should be sent
* every minute so if we fail to receive any for 90 seconds we
* assume the connection has been dropped and treat this pool
* as dead */
if (!sock_full(pool) && (sel_ret = select(pool->sock + 1, &rd, NULL, NULL, &timeout)) < 1) {
I am damn sure that .blacklotus.net (Or nginx proxy or whatever is there ) is causing this because i have many simultaneous connections originating from same IP
Please do one of two things
1. Ask blacklotus.net/Nginx to delay connections not more than 50 secs
2. Consider providing some kind of secret URL mining or VPN or whatever for your trusted users - to bypass blacklotus/Nginx
However first option is preferable