Previous bug fix caused a new bug. :o/

This commit is contained in:
Diego Nehab 2004-05-28 07:38:12 +00:00
parent c98dc99199
commit 84f03fda7c
3 changed files with 18 additions and 13 deletions

View file

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