Skip to content

Conversation

@minrk
Copy link
Member

@minrk minrk commented Feb 7, 2016

tracker method doesn't appear to be reliable for small messages, since zmq does some optimizations to always copy small messages.

This means creating/destroying new context/socket for each subprocess message, which is inefficient but shouldn't be too costly.

I've run the tests with this on Jenkins with the same env that was failing previously. Prior to this patch, the failure occurred pretty consistently around 10% of the time. It's now passed 50 times and counting without failure, so the fix seems to be successful.

closes #98 (hopefully)

tracker method doesn't appear to be reliable for small messages

this means creating/destroying new context/socket for each subprocess message,
which is inefficient, but shouldn't be too costly
@minrk minrk added this to the 4.3 milestone Feb 7, 2016
@minrk
Copy link
Member Author

minrk commented Feb 12, 2016

@takluyver this should fix the Jenkins builds

@takluyver
Copy link
Member

You mean, the hanging issue as well as the intermittent number-of-hellos failure?

takluyver added a commit that referenced this pull request Feb 12, 2016
use ctx.term to flush pipe messages
@takluyver takluyver merged commit 708f56b into ipython:master Feb 12, 2016
@takluyver
Copy link
Member

Does not appear to have fixed the hanging issue - that was pure optimism on my part!

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.

Intermittent test failure - test_subprocess_print

2 participants