From 92d562688a1e02e5d6dd2e3de7fc1264288e378c Mon Sep 17 00:00:00 2001 From: Hayk Martirosyan Date: Tue, 10 Mar 2015 00:22:41 -0700 Subject: [PATCH] Fix connection hang between remote machines --- src/client.cpp | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index fb6a03c..e4700de 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -120,6 +120,7 @@ void Redox::connectedCallback(const redisAsyncContext* ctx, int status) { if (status != REDIS_OK) { rdx->logger_.fatal() << "Could not connect to Redis: " << ctx->errstr; + rdx->logger_.fatal() << "Status: " << status; rdx->connect_state_ = CONNECT_ERROR; } else { @@ -213,6 +214,7 @@ void breakEventLoop(struct ev_loop* loop, ev_async* async, int revents) { void Redox::runEventLoop() { // Events to connect to Redox + ev_run(evloop_, EVRUN_ONCE); ev_run(evloop_, EVRUN_NOWAIT); // Block until connected to Redis, or error -- libgit2 0.21.4