From 7c4802719c21835187f0e29fa519202f1333aaef Mon Sep 17 00:00:00 2001 From: Evgeniy Polyakov Date: Tue, 9 Oct 2012 21:39:44 +0400 Subject: [PATCH] Return correct reply size: data+binary, not data+event --- srw/srw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srw/srw.cpp b/srw/srw.cpp index 995506b..80cca72 100644 --- a/srw/srw.cpp +++ b/srw/srw.cpp @@ -379,7 +379,7 @@ class srw { } bool final = sph->flags & DNET_SPH_FLAGS_FINISH; - it->second->reply(final, (char *)(sph + 1) + sph->event_size, sph->data_size + sph->event_size); + it->second->reply(final, (char *)(sph + 1) + sph->event_size, sph->data_size + sph->binary_size); dnet_log(m_n, DNET_LOG_INFO, "%s: task completed(%x), total-data-size: %zd, finish: %d\n", event.c_str(), sph->src_key, total_size(sph), final); -- 2.11.4.GIT