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

Pull request from nikita-n's fork #6

Merged
merged 2 commits into from
Feb 7, 2014
Merged

Conversation

jirihnidek
Copy link
Owner

It look OK for me ... mergin to my fork :-).

Nikita Nerkar added 2 commits October 10, 2013 11:10
Expected behavior:
	'Ref RFC 6455'
	A fragmented message consists of a single frame with the FIN bit
	clear and an opcode other than 0, followed by zero or more frames
	with the FIN bit clear and the opcode set to 0, and terminated by
	a single frame with the FIN bit set and an opcode of 0
Current Behavior:
	When server sends data in fragmented frames,
	for some platforms, the data received is not always equal to the payload length
	and hence the original frame is received in multiple receives due to which the
	final bit is set even if the received fragmented subframe is not the
	terminating one.
	Consider if server sends the terminating frame of size 1008 bytes with final bit set.
	On client side, it further gets divided into two chunks of size 532 bytes
	and 476 bytes. For both the frames the final bit is set which violates the
	protocol.
	This behavior is observed as the final bit value received from server is
	directly assigned to the client side frame without checking if thats the
	terminating frame or not.
Expected behavior:
        'Ref RFC 6455'
        A fragmented message consists of a single frame with the FIN bit
        clear and an opcode other than 0, followed by zero or more frames
        with the FIN bit clear and the opcode set to 0, and terminated by
        a single frame with the FIN bit set and an opcode of 0
Current Behavior:
        When server sends data in fragmented frames,
        for some platforms, the data received is not always equal to the payload
	length and hence the original frame is received in multiple receives due to
	which the opcode bit is set even if the received fragmented subframe is not
	the first one.
        Consider if server sends the first frame of size 1008 bytes with opcode bit set.
        On client side, it further gets divided into two chunks of size 532 bytes
        and 476 bytes. For both the frames the opcode is set which violates the
	protocol.
	This behavior is observed as the opcode bit value received from server is
        directly assigned to the client side frame without checking if thats the
        first frame or not.

Signed-off-by: Nikita Nerkar <nikitan@marvell.com>
jirihnidek pushed a commit that referenced this pull request Feb 7, 2014
Pull request from nikita-n's fork
@jirihnidek jirihnidek merged commit b4ceb62 into jirihnidek:master Feb 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant