h2load: Fix incorrect return value from spdylay_send_callback

This commit is contained in:
Tatsuhiro Tsujikawa 2017-01-08 17:32:35 +09:00
parent 1a07fb000b
commit 5108193d7b
1 changed files with 1 additions and 1 deletions

View File

@ -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);