tls: re-enable .writev()
on TLSWrap
Fix the `parallel/test-tls-over-http-tunnel.js` on Windows by re-enabling the accidentally disabled `.writev()` method on TLSWrap. It appears that there is some subtle issue with shutdown timing and it manifests itself when the chunks are written in separate packets. This leads to concurrent `shutdown`/`destroy`, which breaks the test. PR-URL: https://github.com/iojs/io.js/pull/1155 Reviewed-By: Bert Belder <bertbelder@gmail.com>
This commit is contained in:
parent
e90ed790c3
commit
4eb8810a27
@ -827,7 +827,7 @@ void TLSWrap::Initialize(Handle<Object> target,
|
||||
env->SetProtoMethod(t, "enableSessionCallbacks", EnableSessionCallbacks);
|
||||
env->SetProtoMethod(t, "enableHelloParser", EnableHelloParser);
|
||||
|
||||
StreamBase::AddMethods<TLSWrap>(env, t);
|
||||
StreamBase::AddMethods<TLSWrap>(env, t, StreamBase::kFlagHasWritev);
|
||||
SSLWrap<TLSWrap>::AddMethods(env, t);
|
||||
|
||||
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
|
||||
|
Loading…
x
Reference in New Issue
Block a user