diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-01-29 02:48:10 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-01-29 02:49:03 +0400 |
commit | 9836a4eeda1e2d43aad0923f1f72b364792629bc (patch) | |
tree | f9a43115eaca3a49f83c910d20ea363bef3b2b29 /src/tls_wrap.h | |
parent | eaf76648a6ba05932465fdb2478a16ca4b6c17a6 (diff) | |
download | android-node-v8-9836a4eeda1e2d43aad0923f1f72b364792629bc.tar.gz android-node-v8-9836a4eeda1e2d43aad0923f1f72b364792629bc.tar.bz2 android-node-v8-9836a4eeda1e2d43aad0923f1f72b364792629bc.zip |
stream_wrap: use `uv_try_write` where possible
Use `uv_try_write` for string and buffer writes, thus avoiding to do
allocations and copying in some of the cases.
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r-- | src/tls_wrap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h index db78009ede..946cc1c64d 100644 --- a/src/tls_wrap.h +++ b/src/tls_wrap.h @@ -51,6 +51,7 @@ class TLSCallbacks : public crypto::SSLWrap<TLSCallbacks>, v8::Handle<v8::Context> context); const char* Error(); + int TryWrite(uv_buf_t** bufs, size_t* count); int DoWrite(WriteWrap* w, uv_buf_t* bufs, size_t count, |