-
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
Wireshark flooded with [PSH, ACK] packets when using websockets #36
Comments
Hello, However, note that this repo is only a binding over https://github.com/cesanta/mongoose/ which is a C web server, and it's been a while it was not updated. You should consider:
|
(And I would not be surprised if the WebSockets part is broken, however I am sorry that you will have to investigare further yourself if you want to get at the bottom of this 😅) |
No worries, thank you for answering already, this is the bigger part of knowing how to handle the situation :) I'm in a similar position myself with little time to dedicate on other people's problems. Thank you for the info, if I find something I'll post it here (but it's likely that I'm switching over websocketpp ;) |
This project looks good! There is also Qt itself providing an implementation, this is a way much more serious lead |
Thank you :) |
And what is your problem with boost ? |
I managed to not have it as a dependency for the whole project, and I really want to try without, because it will just make it much more heavy and painful to maintain / collaborate. Right now, everything is pretty much working on its own (with the JUCE dependency), so when you want to get on it, even though it's a pretty big piece of code, it's quite easy to get started and work. |
This line in Server::poll()
mg_iterate_over_connections(server, iterate_callback, ¤t_timer);
is sending packet to all websockets connection in a loop, which doesn't seem right.
I tested other websocket libraries and this behavior is not there. It may be related to the other issue I posted.
Generally, either I have no clue on how to use websockets in mongoose or there is something very wrong on how it's implemented :
Am I missing something here ?? I'm not doing anything fancy, just trying out the library because it's one of the only ones to support both http request AND websocket, WITHOUT relying on Asio, but the websocket part is seems so broken...
Thank you in advance
The text was updated successfully, but these errors were encountered: