summaryrefslogtreecommitdiffstats
path: root/net/base/nss_memio.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-08 16:41:14 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-08 16:41:14 +0000
commit9ae2ee0b2e657a1556edb9646c032ab50b291f09 (patch)
tree603678b8945a866c679d633c3e4020093fb2dc94 /net/base/nss_memio.h
parentb5f2ca399b0ddc05df4406054cb515863370ebef (diff)
downloadchromium_src-9ae2ee0b2e657a1556edb9646c032ab50b291f09.zip
chromium_src-9ae2ee0b2e657a1556edb9646c032ab50b291f09.tar.gz
chromium_src-9ae2ee0b2e657a1556edb9646c032ab50b291f09.tar.bz2
net: When using False Start merge Finished and Application Data records.
When using False Start, this patch causes NSS to perform a single write which contains the ClientKeyExchange, ChangeCipherSpec, Finished and first application data record. This removes a source of non-determinism when dealing with False Start intolerant servers. Previously, Chrome may, or may not work depending on network timing. BUG=none TEST=none http://codereview.chromium.org/3331005/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58838 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/nss_memio.h')
-rw-r--r--net/base/nss_memio.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/base/nss_memio.h b/net/base/nss_memio.h
index c93e91f..49d7cbc 100644
--- a/net/base/nss_memio.h
+++ b/net/base/nss_memio.h
@@ -68,10 +68,12 @@ int memio_GetReadParams(memio_Private *secret, char **buf);
void memio_PutReadResult(memio_Private *secret, int bytes_read);
/* Ask memio what data it has to send to the network.
- * Returns buffer space available to read into, or 0 if none available.
- * Puts current buffer position into *buf.
+ * Returns up to two buffers of data by writing the positions and lengths into
+ * |buf1|, |len1| and |buf2|, |len2|.
*/
-int memio_GetWriteParams(memio_Private *secret, const char **buf);
+void memio_GetWriteParams(memio_Private *secret,
+ const char **buf1, unsigned int *len1,
+ const char **buf2, unsigned int *len2);
/* Tell memio how many bytes were sent to the network.
* If bytes_written is < 0, it is treated as an NSPR error code.