Add an option to make the WriteLoop in the SocketFrameHandler run in its own dedicated thread. In this version (6.x) most operations are blocking (CreateModel, QueueDeclare etc...) using BlockingCell. This can create a situation where all the threadpool threads are blocked waiting for a response to a message that can't get sent because there are no threads left for the WriteLoop. See #1354
Types of Changes
What types of changes does your code introduce to this project?
Put an x in the boxes that apply
[x] Bug fix (non-breaking change which fixes issue #1354)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
[ ] Documentation improvements (corrections, new content, etc)
[ ] Cosmetic change (whitespace, formatting, etc)
Checklist
Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in related repositories
Further Comments
If this is a relatively large or complex change, kick off the discussion by
explaining why you chose the solution you did and what alternatives you
considered, etc.
Proposed Changes
Add an option to make the WriteLoop in the SocketFrameHandler run in its own dedicated thread. In this version (6.x) most operations are blocking (CreateModel, QueueDeclare etc...) using BlockingCell. This can create a situation where all the threadpool threads are blocked waiting for a response to a message that can't get sent because there are no threads left for the WriteLoop. See #1354
Types of Changes
What types of changes does your code introduce to this project? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask on the mailing list. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CONTRIBUTING.md
documentFurther Comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc.