From 5108193d7be7453bd37fd9cafb675c36b6a74e3b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 8 Jan 2017 17:32:35 +0900 Subject: [PATCH] h2load: Fix incorrect return value from spdylay_send_callback --- src/h2load_spdy_session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h2load_spdy_session.cc b/src/h2load_spdy_session.cc index 54083809..370aeccc 100644 --- a/src/h2load_spdy_session.cc +++ b/src/h2load_spdy_session.cc @@ -113,7 +113,7 @@ ssize_t send_callback(spdylay_session *session, const uint8_t *data, auto &wb = client->wb; if (wb.rleft() >= BACKOFF_WRITE_BUFFER_THRES) { - return SPDYLAY_ERR_DEFERRED; + return SPDYLAY_ERR_WOULDBLOCK; } return wb.append(data, length);