Skip to content
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

[WIP] Ensure all futures+signals are closed when stream is closed. #2652

Closed
wants to merge 1 commit into from

Conversation

Zsailer
Copy link
Contributor

@Zsailer Zsailer commented Apr 30, 2019

Fixes #2651. See discussion there.

I still need to write a small test for this PR. I'll ping once I have this finished.

@Zsailer
Copy link
Contributor Author

Zsailer commented Apr 30, 2019

@bdarnell would you mind giving me some guidance on how you'd write a test for this?

Would you like me create a new unit test for the _maybe_add_error_listener method directly? Or add extra assertions in tests that use this private method under the hood?

@bdarnell
Copy link
Member

bdarnell commented May 2, 2019

Ideally I'd like to test this using only public interfaces. We're missing coverage of some case here - something to do with a client closing while it's its turn to speak? Maybe something involving multiple threads that we can't simulate with a single-threaded async test? I was hoping that examining the failing jupyterlab test cases would yield some clues here.

jasongrout referenced this pull request in jupyterlab/jupyterlab May 8, 2019
…blishing.

This will make it easier to inspect the work at each step before pushing it out to the world.
@Zsailer
Copy link
Contributor Author

Zsailer commented Jun 3, 2019

Closing in favor of #2670.

@Zsailer Zsailer closed this Jun 3, 2019
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.

Tornado 6.0 and Jupyter notebook server issue.
2 participants