Commit 98883ed
fix(channels): default channels to unencrypted so messages flow
Channels encrypt on egress and decrypt on ingress through the Encrypt/
Decrypt request brokers. Nothing in the production/FFI path registered a
provider, so every send failed at encryption before reaching the wire and
every receive failed at decryption before reassembly. The net effect was
that channel_send put nothing on the network and channel_message_received
never fired.
Install the pass-through noop provider in ReliableChannelManager.start(),
the symmetric spot to MessagingClient.start() wiring MessagingSend, on the
same FFI worker thread the channel handlers run on (the brokers are
thread-local). setProvider refuses to overwrite, so an application that
installs its own encryption before start keeps it; otherwise channels
default to unencrypted payloads.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent ce918b0 commit 98883ed
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
0 commit comments