summaryrefslogtreecommitdiff
path: root/libextra/gnutls_ia.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-10 23:10:45 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-10 23:10:45 +0200
commitd0a081ec1b276a80a4b1ca1dc5109fd27ad0abc2 (patch)
treeddb00a0dabdc443abc2b17232375736e040772b9 /libextra/gnutls_ia.c
parentb3d8ec01ea3ffdc0e58b2f9f62148bc28a91e741 (diff)
downloadgnutls-d0a081ec1b276a80a4b1ca1dc5109fd27ad0abc2.tar.gz
Support scattered write using writev(). This takes
advantage of the new buffering layer and allows queuing of packets and flushing them. This is currently used for handshake messages only. Performance-wise the difference of packing several TLS records in a single write doesn't seem to offer anything over ethernet (that my tests were on). Probably on links with higher latency there would be a benefit.
Diffstat (limited to 'libextra/gnutls_ia.c')
-rw-r--r--libextra/gnutls_ia.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libextra/gnutls_ia.c b/libextra/gnutls_ia.c
index f3f1e4a9a7..e2ff0d9e13 100644
--- a/libextra/gnutls_ia.c
+++ b/libextra/gnutls_ia.c
@@ -97,7 +97,7 @@ _gnutls_send_inner_application (gnutls_session_t session,
memcpy (p + 4, data, sizeofdata);
}
- len = _gnutls_send_int (session, GNUTLS_INNER_APPLICATION, -1, p, plen);
+ len = _gnutls_send_int (session, GNUTLS_INNER_APPLICATION, -1, p, plen, MBUFFER_FLUSH);
if (p)
gnutls_free (p);