mirror of
https://github.com/aria2/aria2.git
synced 2025-01-04 09:03:46 +00:00
SocketBuffer: Keep sending until blocked
See GH-345
This commit is contained in:
parent
fd6f5ebc32
commit
cb5ccf6a7a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user