Commit 5108193d authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

h2load: Fix incorrect return value from spdylay_send_callback

parent 1a07fb00
...@@ -113,7 +113,7 @@ ssize_t send_callback(spdylay_session *session, const uint8_t *data, ...@@ -113,7 +113,7 @@ ssize_t send_callback(spdylay_session *session, const uint8_t *data,
auto &wb = client->wb; auto &wb = client->wb;
if (wb.rleft() >= BACKOFF_WRITE_BUFFER_THRES) { if (wb.rleft() >= BACKOFF_WRITE_BUFFER_THRES) {
return SPDYLAY_ERR_DEFERRED; return SPDYLAY_ERR_WOULDBLOCK;
} }
return wb.append(data, length); return wb.append(data, length);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment