Skip to content

Conversation

miguelgrinberg
Copy link
Owner

@miguelgrinberg miguelgrinberg commented Oct 14, 2025

This change restores the ability to send binary messages in setups that use a message queue.

A regression was introduced in #1502, where the encoding used on packets transmitted between hosts in the message queue was switched from pickle to JSON to eliminate the risks associated with the pickle module. Due to the JSON encoding, any messages that included binary data would not send. This change restores the support for binary data, using the same mechanism used to transmit these messages over JSON between server and client.

@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (383eeaf) to head (c78c035).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1509   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines         2615      2640   +25     
  Branches       448       452    +4     
=========================================
+ Hits          2615      2640   +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@miguelgrinberg miguelgrinberg force-pushed the binary-packets-on-message-queue branch from dc1b853 to c78c035 Compare October 14, 2025 23:07
@miguelgrinberg miguelgrinberg merged commit bab4a10 into main Oct 15, 2025
44 checks passed
@miguelgrinberg miguelgrinberg deleted the binary-packets-on-message-queue branch October 15, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants