aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-28 07:38:12 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-28 07:38:12 +0000
commit84f03fda7c2be57e14f937e295710b5e883fedc6 (patch)
treef8845f3e555d9ba1bd42fc77bc41791e241fdf5e /src
parentc98dc991998c724a3f6a1fdd90b5d1d8a80e3af3 (diff)
downloadluasocket-84f03fda7c2be57e14f937e295710b5e883fedc6.tar.gz
luasocket-84f03fda7c2be57e14f937e295710b5e883fedc6.tar.bz2
luasocket-84f03fda7c2be57e14f937e295710b5e883fedc6.zip
Previous bug fix caused a new bug. :o/
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c2
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;