-
Notifications
You must be signed in to change notification settings - Fork 45
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
send websocket with large data size #3
Comments
Hello, Is it specific to |
I've just merged and updated the code using the new master version of mongoose cpp and their new function You can give it a try now |
(Please also confirm & close this issue if it's OK) |
I could not test, pegei its new version and now it does not find the css and javascript files that are used in html, as the socket is opened in javascript had no way to test. |
About mg_websocket_write I had already tried but the same problem happened. |
E ai pessoal! consegui \o/ |
so mais uma coisa, tinha um errinho, ficou assim:
int mg_websocket_write(struct mg_connection* conn, int opcode,
} |
Hello, This repository only concerns the binding around |
The problem was this, the packet size has a limit up to 127, and when a package is another continuation of the appointment is needed in the first bit of the package, such as 0 and 1 as first order and the fifth to eighth bit is to mark the opcode, 1 text, 2 binary, ... 0 and continuation of the previous packet. The ninth digit is to mark the Mask and there is that tava error: function void WebSocket :: send (string data) was sending a package with 255, with that size invading the ninth digit and marked the first mask with the code that was changed in those two functions above. |
OK But since the begining of this thread I updated mongoose and I'm now using |
I think I get the issue |
That's right, the size of the contents of the frame is 7 bits, or just show up to 127, a larger number would occupy the eighth bit which is intended to mark a flag that says if the frame is Mask or not. |
when we send data too large for a websocket, chrome drops connection and shows the error: failed: The server must not mask any frames que sends it to the client.
The text was updated successfully, but these errors were encountered: