-
Notifications
You must be signed in to change notification settings - Fork 30k
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
TLS Server Interface Buf #41880
Comments
It sounds like you're looking for the "secureConnection" event. It has the |
Looking at the documentation I see both a |
I don't think so. The documentation for "connection" says (among other things) this:
That's valuable knowledge. |
That is true, except the sockets generated in those connections are completely unusable and there is no messaging to that effect. |
It also says this:
Seems clear enough to me but suggestions for improvement are of course welcome. |
The problem is that its only clear after the fact. What I suspect is happening is this:
This is undocumented behavior. It is unclear until after it is encountered and there is no communication about this behavior anywhere in either the documentation, error messaging, or stdout. Perhaps passing null into the TLS |
You're welcome to send a pull request that clarifies the documentation but anything that changes the runtime behavior is pretty much guaranteed to get shot down immediately. |
PR-URL: #41917 Fixes: #41880 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: nodejs#41917 Fixes: nodejs#41880 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: nodejs#41917 Fixes: nodejs#41880 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: #41917 Fixes: #41880 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: nodejs#41917 Fixes: nodejs#41880 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: #41917 Fixes: #41880 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Version
17.4.0
Platform
Windows 10
Subsystem
No response
What steps will reproduce the bug?
An insecure socket server is created as:
A secure socket server is created as:
The major difference is where I put the
connect
event handler for the "connection" event. I can execute a TLS server with the same pattern as the insecure server and theconnect
handler will fire, but the socket passed into theconnect
handler will never execute data events or error events. You can console.log that socket, but it is effectively mute. This is impossible to troubleshoot and no feedback is provided.How often does it reproduce? Is there a required condition?
100%
What is the expected behavior?
There is a choice of resolutions:
connection
event of a TLS server, eg:server.on("connection", connect);
What do you see instead?
Nothing. When this error is encountered I can see the handler for the connection event fire and I can console.log the socket passed into that handler, but all events assigned to that socket are ignored and there is no feedback of any kind. Problematic code example:
Additional information
No response
The text was updated successfully, but these errors were encountered: