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

Add large data test. #3

Merged
merged 1 commit into from
Jan 20, 2015
Merged

Conversation

jabbera
Copy link
Contributor

@jabbera jabbera commented Jan 20, 2015

This is a failing test. If you use SendAsync to send over 1016 bytes of binary data the result presented to the client from the WebSocket4Net library is incorrect.

Only the first 1016 bytes of the array is populated. The bug can be seen plain as day in:

https://github.com/kerryjiang/WebSocket4Net/blob/master/WebSocket4Net/WebSocketCommandInfo.cs#L123

If you use SendAsync to send over 1016 bytes the result presented to the client from the WebSocket4Net library is incorrect.

Only the first 1016 bytes of the array is populated. The bug can be seen plain as day in:

https://github.com/kerryjiang/WebSocket4Net/blob/master/WebSocket4Net/WebSocketCommandInfo.cs#L123
LukePulverenti added a commit that referenced this pull request Jan 20, 2015
@LukePulverenti LukePulverenti merged commit dba5beb into MediaBrowser:master Jan 20, 2015
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.

None yet

2 participants