fix net_ssl_writev skipping bytes

Wed, 10 Jul 2024 23:04:58 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 10 Jul 2024 23:04:58 +0200
changeset 539
d556b45b0d24
parent 538
f9a7b5c76208
child 540
d9c3c23c635b

fix net_ssl_writev skipping bytes

src/server/util/io.c file | annotate | diff | comparison | revisions
--- a/src/server/util/io.c	Wed Jun 05 22:42:52 2024 +0200
+++ b/src/server/util/io.c	Wed Jul 10 23:04:58 2024 +0200
@@ -817,6 +817,9 @@
             break;
         }
         r += ret;
+        if(ret < iovec[i].iov_len) {
+            break;
+        }
     }
     return r == 0 ? -1 : r;
 }

mercurial