From c255d6effe3db404bcd5d5acb773fe5c671b7316 Mon Sep 17 00:00:00 2001 From: Evgeniy Polyakov Date: Wed, 10 Oct 2012 12:10:01 +0400 Subject: [PATCH] Fixed reply size calculation --- srw/srw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srw/srw.cpp b/srw/srw.cpp index fe067fe..a9bd984 100644 --- a/srw/srw.cpp +++ b/srw/srw.cpp @@ -383,7 +383,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, "srw: %s: completed: task: %x, total-data-size: %zd, finish: %d\n", app.c_str(), sph->src_key, total_size(sph), final); -- 2.11.4.GIT