-
Notifications
You must be signed in to change notification settings - Fork 179
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
What is the maximum amount of data for a single transfer? #99
Comments
The project doesn't put an upper limit to amount of read data: tufao/src/httpserverrequest.cpp Line 130 in 4d89b6c
And this is actually a problem as it makes your application subject to DoS attacks. It'd be better if it did put a limit, but I'm no longer maintaining this project and will not write such changes.
I'm guessing this is a different problem. Are you writing a response? When the end of current message is reached, it stops reading new requests entirely: tufao/src/httpserverrequest.cpp Lines 246 to 247 in 4d89b6c
Only when you reply to current request through the tufao/src/httpserverresponse.cpp Line 378 in 4d89b6c
...the Lines 133 to 134 in 4d89b6c
That's how I can ensure you'll not get |
In fact, my application uses the "newMessage" signal to get the message sent to me from the web. |
Oh, I didn't realize you were talking about the WebSocket support. Sorry. There is a bug in the payload parsing code for the WebSocket protocol. |
Can you elaborate more? What is the specific cause of the error? Thanks! |
Unfortunately I wrote the code long ago and don't remember the details. Nor do I have time to maintain this project anymore, so you'll have to look by yourself (the file is Although I don't have the time to maintain this project any longer, I still do remember the HTTP classes quite well. If the bug was related to HTTP, I could offer a little helping hand. |
Have you solved the problem? |
@Lucas2525117 can you test if the PR #101 fixes the issue for you? I'm gonna merge it soon. |
Question:
During self-test,the Web transfers data to the application through the tufao library,But when the amount of transmitted data is 128KB, the application does not receive the data message through the signal "newMessage", so I want to ask:“What is the maximum amount of data for a single transfer?”
Thanks!
The text was updated successfully, but these errors were encountered: