Hello,
I'm trying to setup up a tcp server that handles http request most of the
time, but sometimes need to setup up a tls session with the client after
some http header exchange. I know I can setup a tls.server listening on
another port, and forward the client socket to that port, but the IPC is
needed and the data need to be copied back and forth.
To put it differently, I'm looking for a TLS transform stream, similar to
zlib stream or crypto streams, but I don't know how to, and don't wish to,
handle those client/server hello stuff manully.
I check about the net.Server.listen module, it says "The handle object can
be set to either a server or socket (anything with an underlying
_handlemember), or a {fd:
<n>} object. ". So, can I use the tls.server to listening on a duplex
stream instead of a port, so the client socket can be piped without
involving any IPC?
Cheers,
Rong
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
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].
For more options, visit https://groups.google.com/groups/opt_out.