From b13446e387a334dbbed828ee02e5648f3768d5f5 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 13 Feb 2015 15:02:04 +1100 Subject: [PATCH] Send proxy subscription to stratifier as soon as we have it --- src/generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index b9e84e7c..ec558eb5 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1468,6 +1468,8 @@ static bool proxy_alive(ckpool_t *ckp, server_instance_t *si, proxy_instance_t * } goto out; } + if (!ckp->passthrough) + send_subscribe(ckp, proxi); if (!auth_stratum(ckp, cs, proxi)) { if (!pinging) { LOGWARNING("Failed initial authorise to %s:%s with %s:%s !", @@ -1482,8 +1484,6 @@ out: Close(cs->fd); } else { keep_sockalive(cs->fd); - if (!ckp->passthrough) - send_subscribe(ckp, proxi); event.events = EPOLLIN; event.data.ptr = proxi; /* Add this connsock_t to the epoll list */