This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem with long messages in Qpid
Qpid has a limitation where it cannot serialize a dict containing a string greater than 65535 characters. This change alters the Qpid implementation to JSON encode the dict before sending it, but only if Qpid would fail to serialize it. This maintains as much backward compatibility as possible, though long messages will still fail if they are sent to an older receiver. Even though this change will modify the message format, it will only do it when messages are longer than 65K which would be broken anyway and could cause serious bugs like the one linked below. Fixes bug 1215091 (cherry picked from commit 7ce5441) Conflicts: openstack/common/rpc/impl_qpid.py Change-Id: I2f0e88435748bab631d969573d3a598d9e1f7fef
- Loading branch information
Ben Nemec
authored and
Xavier Queralt
committed
Sep 2, 2013
1 parent
3fed731
commit 478ac3a
Showing
2 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters