-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Acknowledgments do not seem to work on 1.0.3 #1575
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
Comments
Further to this issue, it hangs the browser. The problem appears to be in the function decodeString(str) {
var p = {};
var i = 0;
// look up type
p.type = Number(str.charAt(0));
if (null == exports.types[p.type]) return error();
// look up attachments if type binary
if (exports.BINARY_EVENT == p.type || exports.ACK == p.type) {
p.attachments = '';
while (str.charAt(++i) != '-') { // <-- problem here. non-terminating loop. str never contains '-'
p.attachments += str.charAt(i);
}
p.attachments = Number(p.attachments);
}
... |
We're having exactly this problem, across multiple browsers as well. They just hang. I simply downgraded to 1.0.2 |
+1 |
Looking into this! |
Same issue here. Execution freezes in the while loop @jamesrom mentioned. |
I've just tried with 1.0.2 and the bug does not occur. |
hey all. I've looked into the issue a bit and it seems that the client build in 1.0.3 does not have the updated 2.2.0 socket.io-parser. this should be fixed very soon! |
@kevin-roark thanks you! Do you know when it will be fixed? Having the same issue here after going to 1.0.3. All the best! |
Just letting yall know i have the same issue. Chrome on OSX hangs and requires a force quit if i use acknowledgements |
1.0.4 incoming with the fixed build! |
Also working on an enhanced release procedure to make sure this gets tested. |
Perfect timing. I almost downgraded... |
@guille thanks! For when the release? |
Right about… now! |
Thanks a lot for the fast response & bug fix. |
Yep that fixed it for me! Legend on the fast update |
Fixed it! Thanks a lot. |
Thanks @kevin-roark for the diagnosis! |
I've been trying to get acknowledgments working, but nothing seems to work.
I've inspected the socket frames and I can see the data being sent. But the client callback is never called.
Both the client script and the node module are at version 1.0.3.
The text was updated successfully, but these errors were encountered: