Conversation
Member
Author
|
cc: @nkzawa |
Member
Author
|
I guess the question to answer is: Is there any advantage on calling I don't know much about low level networking so if someone could shed some light on this, it would be great. |
f6237a9 to
4324f4b
Compare
a6f1e52 to
141bc9c
Compare
141bc9c to
d9651aa
Compare
Member
Author
|
@websockets/admin any thoughts on this? |
|
When my client is Node and the server is Java(Netty), can it work? |
Member
Author
|
@citrusjunoss yes. |
But the server does not receive any data when I call the close method |
Member
Author
|
It should receive a close frame. If you don't specify a close code, it will be something like this: The last 4 bytes are random (the mask). You can check this with wireshark if you have no access to the TCP socket. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently the close handshake works like this when initiated from the server:
and like this when initiated from the client:
This patch uniforms the behavior making a close initiated by the server work in the same way of a close initiated by the client.
After reading https://tools.ietf.org/html/rfc6455#section-1.4 and https://tools.ietf.org/html/rfc6455#section-7, I think this is correct.
I have some doubts on this section which is why the close handshake is currently implemented in this way for the server but I also checked other implementations for Node.js and they use the same procedure for both client and server as proposed in this patch.