Previous bug fix caused a new bug. :o/
This commit is contained in:
parent
c98dc99199
commit
84f03fda7c
3 changed files with 18 additions and 13 deletions
|
@ -129,7 +129,7 @@ int sendraw(p_buf buf, const char *data, size_t count, size_t *sent)
|
|||
p_tm tm = buf->tm;
|
||||
size_t total = 0;
|
||||
int err = IO_DONE;
|
||||
while (total < count && err == IO_DONE) {
|
||||
while (total < count && (err == IO_DONE || err == IO_RETRY)) {
|
||||
size_t done;
|
||||
err = io->send(io->ctx, data+total, count-total, &done, tm_get(tm));
|
||||
total += done;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue