Skip to content

Fix for xhr-multipart buffering issue that causes premature onData events to be fired.#83

Closed
Croy9000 wants to merge 1 commit intosocketio:masterfrom
Croy9000:master
Closed

Fix for xhr-multipart buffering issue that causes premature onData events to be fired.#83
Croy9000 wants to merge 1 commit intosocketio:masterfrom
Croy9000:master

Conversation

@Croy9000
Copy link

Currently when a large message is received via xhr-multipart, multiple Transport.prototype._onData events are triggered for the same message, causing JSON.parse errors. This fix ensures the entire message is buffered before triggering the event.

@canoeberry
Copy link

I've run into this problem myself. Everything works anyway when all the data finally comes in, but it's alarming. Hope your fix is correct and that it's snarfed up.

@danielbeardsley
Copy link
Contributor

Looks like the changes have already been made.

@rauchg
Copy link
Contributor

rauchg commented Mar 6, 2011

Yep

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants