SocketBuffer: Keep sending until blocked

See GH-345
This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-08 21:15:12 +09:00
parent fd6f5ebc32
commit cb5ccf6a7a

View File

@ -169,7 +169,10 @@ ssize_t SocketBuffer::send()
if(firstlen > slen) {
offset_ += slen;
bufq_.front()->progressUpdate(slen, false);
goto fin;
if (socket_->wantRead() || socket_->wantWrite()) {
goto fin;
}
continue;
}
slen -= firstlen;