diff options
author | Manav Rathi <manav.r@directi.com> | 2013-03-18 19:40:41 +0530 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-03-26 01:37:49 +0100 |
commit | d20576165ae0e954743bed45b0c2ca33dff4b20c (patch) | |
tree | cfe5efa021332ee203e7c114a2a023f025facb4c /src/node_crypto.h | |
parent | 1a65154d7296b7936518dc084cd757960d3d5882 (diff) | |
download | node-new-d20576165ae0e954743bed45b0c2ca33dff4b20c.tar.gz |
tls: expose SSL_CTX_set_timeout via tls.createServer
Add the `sessionTimeout` integral value to the list of options
recognized by `tls.createServer`.
This option will be useful for applications which need frequently
establish short-lived TLS connections to the same endpoint. The TLS
tickets RFC is an ideal option to reduce the socket setup overhead
for such scenarios, but the default ticket timeout value (5
minutes) is too low to be useful.
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 0ceb1f69c9..74e07c227d 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -73,6 +73,7 @@ class SecureContext : ObjectWrap { static v8::Handle<v8::Value> SetCiphers(const v8::Arguments& args); static v8::Handle<v8::Value> SetOptions(const v8::Arguments& args); static v8::Handle<v8::Value> SetSessionIdContext(const v8::Arguments& args); + static v8::Handle<v8::Value> SetSessionTimeout(const v8::Arguments& args); static v8::Handle<v8::Value> Close(const v8::Arguments& args); static v8::Handle<v8::Value> LoadPKCS12(const v8::Arguments& args); |