git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TLS: do decent PIPELINING under TLS, at least with GnuTLS
[users/jgh/exim.git]
/
src
/
src
/
transport.c
diff --git
a/src/src/transport.c
b/src/src/transport.c
index 5bcf8c1ae7f5357b6f6885d8e330d224acff16d6..04b67f9e94c5114e7d8e22e7cdeb48ce900d2929 100644
(file)
--- a/
src/src/transport.c
+++ b/
src/src/transport.c
@@
-203,6
+203,7
@@
Arguments:
tctx transport context: file descriptor or string to write to
block block of bytes to write
len number of bytes to write
tctx transport context: file descriptor or string to write to
block block of bytes to write
len number of bytes to write
+ more further data expected soon
Returns: TRUE on success, FALSE on failure (with errno preserved);
transport_count is incremented by the number of bytes written
Returns: TRUE on success, FALSE on failure (with errno preserved);
transport_count is incremented by the number of bytes written
@@
-233,7
+234,7
@@
for (i = 0; i < 100; i++)
{
rc =
#ifdef SUPPORT_TLS
{
rc =
#ifdef SUPPORT_TLS
-
(tls_out.active == fd) ? tls_write(FALSE, block, len
) :
+
tls_out.active == fd ? tls_write(FALSE, block, len, more
) :
#endif
#ifdef MSG_MORE
more ? send(fd, block, len, MSG_MORE) :
#endif
#ifdef MSG_MORE
more ? send(fd, block, len, MSG_MORE) :
@@
-250,7
+251,7
@@
for (i = 0; i < 100; i++)
rc =
#ifdef SUPPORT_TLS
rc =
#ifdef SUPPORT_TLS
-
(tls_out.active == fd) ? tls_write(FALSE, block, len
) :
+
tls_out.active == fd ? tls_write(FALSE, block, len, more
) :
#endif
#ifdef MSG_MORE
more ? send(fd, block, len, MSG_MORE) :
#endif
#ifdef MSG_MORE
more ? send(fd, block, len, MSG_MORE) :