Repository navigation
pamqp now sends field-table values with the same types as the Java, .NET and Go RabbitMQ clients. This changes the bytes on the wire, so it is a major release.
Changed
- Breaking: a
floatfield-table or field-array value is now encoded as a 64-bit double (d), not a 32-bit float (f). Values no longer lose precision:0.1decodes back as0.1. (#87, #88) - Breaking: an
intfield-table or field-array value is now encoded as a signed 32-bit integer (I) when it fits, otherwise as a signed 64-bit integer (l). Before, pamqp used the smallest type that held the value, so a Java consumer got aByte,Short,IntegerorLongfor the same header depending on the number. (#87, #88)
Deprecated
encode.support_deprecated_rabbitmq()andencode.DEPRECATED_RABBITMQ_SUPPORThave no effect and raise aDeprecationWarning. All supported RabbitMQ versions accept theIandltypes. Both will be removed in a future release. (#88)
Security
- Field-table and field-array decoding now stops at 32 nesting levels (
decode.MAX_NESTING_DEPTH) and raisesValueError. Before, deeply nested data from the network caused aRecursionError, which a peer could use to make the decoder fail with an unexpected exception. (#88)