diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 4bcfa1a..b771047 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -129,7 +129,7 @@ int sendraw(p_buf buf, const char *data, size_t count, size_t *sent) | |||
| 129 | p_tm tm = buf->tm; | 129 | p_tm tm = buf->tm; |
| 130 | size_t total = 0; | 130 | size_t total = 0; |
| 131 | int err = IO_DONE; | 131 | int err = IO_DONE; |
| 132 | while (total < count && err == IO_DONE) { | 132 | while (total < count && (err == IO_DONE || err == IO_RETRY)) { |
| 133 | size_t done; | 133 | size_t done; |
| 134 | err = io->send(io->ctx, data+total, count-total, &done, tm_get(tm)); | 134 | err = io->send(io->ctx, data+total, count-total, &done, tm_get(tm)); |
| 135 | total += done; | 135 | total += done; |
