tokio-tower: Does receiving a multiplexed response with a bad response identifier cause a panic?
Reading the multiplexed client implementation, it looks like a response with an unknown response identifier will cause a panic, due to the use of expect.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (2 by maintainers)
Unfortunately I think this would be a breaking change, since it requires adding a variant to
Error. A similar thing can also happen forPipelined, if you get a response but don’t have a pending request. Both of those should probably map to an error likeError::Desynchronized. I’ll leave this open as a reminder for the next breaking release! I don’t think it’s urgent enough to do a breaking release right now.