Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On Mac OS M1 and M2 with OTP 26, prior to this commit, the following test failed: ``` make -C deps/rabbitmq_mqtt ct-reader t=tests:rabbit_mqtt_qos0_queue_overflow FULL=1 ``` with: ``` reader_SUITE > tests > rabbit_mqtt_qos0_queue_overflow #1. {'EXIT', {function_clause, {emqtt_frame,parse_packet, [{mqtt_packet_header,7,true,0,false}, <<120,120,120,120,120,120,120,120,120,120,120,120,120,120, 120,120,120,120,120,120,120,120,120,120,120,120,120,120, 120,120,120,120,48,159,31,0,31,114,97,98,98,105,116,95, 109,113,116,116,95,113,111,115,48,95,113,117,101,117, 101,95,111,118,101,114,102,108,111,119,120,120,120,120, 120,120,120,120,120,120,120,120,120,120,120,120,120,120, 120,120,120,120,120,120,120,120,120,120,120,120,120,120, 120,120,120,120,120,120,120,120,120,120,120,120,120,120, 120,120,120,120,120,120>>, #{version => 4,max_size => 268435455, strict_mode => false}], [{file,"src/emqtt_frame.erl"},{line,182}]}}} ``` This is due to the OTP bug in erlang/otp#7566 Simply exporting the serialise_len/1 fixes this OTP bug.
- Loading branch information