Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLSSocket sent to the sub-thread, this is no better solution for it #8711

Closed
yuchonghua opened this issue Sep 22, 2016 · 5 comments
Closed
Labels
question Issues that look for answers. tls Issues and PRs related to the tls subsystem.

Comments

@yuchonghua
Copy link

yuchonghua commented Sep 22, 2016

TLSSocket sent to the sub-thread use child_process.fork, this is no better solution for it

#4037

@mscdex mscdex added question Issues that look for answers. tls Issues and PRs related to the tls subsystem. labels Sep 22, 2016
@bnoordhuis
Copy link
Member

I'm going to close this as 'incomprehensible'. #4037 explains why you can't send a TLSSocket to a child process.

@yuchonghua
Copy link
Author

Other states TLSSocket of whether JSON transmitted through it, is to put forward the socket and TLS state machine to separate the child thread

@yuchonghua
Copy link
Author

process.send(JSON.stringify(TLSSocket),socket)

@yuchonghua
Copy link
Author

TLSSocket serializable properties to send the child thread, then a combination of new TLSSocket, so it is feasible

@bnoordhuis
Copy link
Member

I'm going to refer you to the openssl source code if you want to know all the ins and outs but the summary is that it's not nearly as trivial as you apparently think it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that look for answers. tls Issues and PRs related to the tls subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants