Commit 4deda91bda034d330fd20c1000ef2d3d2972bd0e

Michael Schubert 2012-09-04T00:13:59

netops: continue writing on SSL_ERROR_WANT_WRITE

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/netops.c b/src/netops.c
index f622e0d..a0d2bf3 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -442,7 +442,7 @@ static int send_ssl(gitno_ssl *ssl, const char *msg, size_t len)
 
 	while (off < len) {
 		ret = SSL_write(ssl->ssl, msg + off, len - off);
-		if (ret <= 0)
+		if (ret <= 0 && ret != SSL_ERROR_WANT_WRITE)
 			return ssl_set_error(ssl, ret);
 
 		off += ret;