Hello,
I have an e-mail application written in nodejs that uses STARTTLS.
For those not familiar, the connection is open through a regular,
non-encrypted net.socket and it gets encrypted after this command is issued.
Now i'm trying to implement SNICallback to load the proper SSL certificate,
but very often the app crashes with the following stack trace:
>
> _tls_wrap.js:117
> if (ctx.context)
> ^
> TypeError: Cannot read property 'context' of undefined
> at requestOCSP (_tls_wrap.js:117:10)
> at _tls_wrap.js:167:5
> at loadSNI (_tls_wrap.js:88:12)
> at TLSSocket.oncertcb (_tls_wrap.js:164:3)
> at TLSWrap.ssl.oncertcb (_tls_wrap.js:397:39)
What I do is:
var options = {
> server : netServer,
> SNICallback : SNICallback,
> }
> ...
> var tlsSocket = new tls.TLSSocket(netSocket, {
> server : netServer, //this is the net.Server instance
> requestCert : false,
> rejectUnauthorized : false,
> SNICallback : SNICallback, //this is a function (hostname, callback)
> requestOCSP : false,
> });
>
I'm not yet able to reproduce it on a test environment, it only happens in
production so I think it may be something with client disconnecting right
after issuing this command.
In a test environment (telnet) it all works perfectly. In production it
works for hundreds of connections until randomly crashes.
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/076c7201-5653-4fea-abc5-ac0b1a0f1378%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.