-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
How to determine a message has been fully transfered #106
Comments
You need to implement a protocol on top of the TCP layer. By design TCP is an open ended stream that sends and receives chunks. HTTP, RFC6455, ZMQ, and STOMP are a few examples. Something simpler might be to try JSON streaming |
@cboden Hi, i have understand。 You will find that the http request body seems to be empty: Is it because the full http request message is not caught? |
ping @WyriHaximus |
@slince we're working on full PSR-7 support for until then the request section on |
@WyriHaximus |
And there lies the problem. We also support websockets where the 'body' is never done. Another thing is that if a client sends a huge file buffering that would mean loading it all into memory. And for one request that isn't to much of an issue, it becomes an issue when 10s or 100s of clients do that at the same time. Now |
I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can reopen this 👍 |
Hi,
I have created a server socket;
If a socket client send large chunks of data(greater than 65535) to the server. the listener for the event "data" will only get partial content every time.
How to gather all the partial content into a complete message?
The text was updated successfully, but these errors were encountered: