Skip to content

Conversation

@jasongrout
Copy link
Member

Because the binary messages are now deserialized using the asynchronous FileReader API, we need to have some way to force the messages to still be processed in the order they are received. This patch implements a simple processing queue using promises.

Because the binary messages are now deserialized using the asynchronous FileReader API, we need to have some way to force the messages to still be processed in the order they are received.  This patch implements a simple processing queue using promises.
@jasongrout
Copy link
Member Author

@minrk, @jdfreder - this is ready for comments. I'll add a test for it on Monday.

@minrk
Copy link
Member

minrk commented Feb 13, 2015

This looks about as simple as I could have hoped. Thanks, @jasongrout!

@minrk minrk added this to the 3.1 milestone Feb 13, 2015
@minrk
Copy link
Member

minrk commented Feb 13, 2015

A test would be awesome, but this looks great to me.

@jasongrout
Copy link
Member Author

@minrk - I think this is ready for review. When I tried testing it using iptest js, it just said Can't test binary websockets on phantomjs., so I'm not sure if the test actually passes.

@jasongrout jasongrout mentioned this pull request Feb 17, 2015
@rgbkrk
Copy link
Member

rgbkrk commented Feb 19, 2015

Can slimer test the binary websockets?

@takluyver
Copy link
Member

takluyver commented Feb 19, 2015 via email

@jdfreder
Copy link
Contributor

@jasongrout this looks very similar to the solution you devised for the widget, thanks! +1 for 3.1 .

@minrk
Copy link
Member

minrk commented Feb 23, 2015

When I wrote the binary websocket test, I was using slimer. I've since uninstalled it, and it's been a little while since I used it, but I can try running it when I get back tomorrow.

msg count and msgspec v5 API changes
@minrk
Copy link
Member

minrk commented Feb 28, 2015

@jasongrout I made jasongrout#7 (if you don't want to add the PR+PR merge commit, you can cherry pick or rebase after merging), after which the tests pass. Your added tests pass fine, but the changes here and older msgspec changes caused the last segment of the test to fail.

@jasongrout
Copy link
Member Author

@minrk: I merged your PR; thanks!

@minrk
Copy link
Member

minrk commented Mar 2, 2015

@jasongrout thanks!

minrk added a commit that referenced this pull request Mar 2, 2015
Fix race condition in javascript kernel message processing
@minrk minrk merged commit 22d5721 into ipython:master Mar 2, 2015
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.

5 participants