Skip to content

Conversation

@pzhan9
Copy link
Contributor

@pzhan9 pzhan9 commented Nov 25, 2025

Summary:
We currently do not explicitly close NetTx's write stream when it exits, as a result, we will see the following log on the NetRx side when using MetaTls:

[-]I1124 14:09:27.934423 629996 fbcode/monarch/hyperactor/src/channel/net/server.rs:592] error processing peer connection, source:tcp:[2401:db00:eef0:1120:3520:0:6c09:3cba]:57588, dest:metatls:devvm16922.vll0.facebook.com:35865, error:session metatls:devvm16922.vll0.facebook.com:35865.18243036951658569703<-tcp:[2401:db00:eef0:1120:3520:0:6c09:3cba]:57588: reading into Frame with M = u64

Caused by:
    peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eof

This diff fixes that.

Differential Revision: D87823699

Summary:
We currently do not explicitly close `NetTx`'s write stream when it exits, as a result, we will see the following log on the `NetRx` side when using `MetaTls`:

```
[-]I1124 14:09:27.934423 629996 fbcode/monarch/hyperactor/src/channel/net/server.rs:592] error processing peer connection, source:tcp:[2401:db00:eef0:1120:3520:0:6c09:3cba]:57588, dest:metatls:devvm16922.vll0.facebook.com:35865, error:session metatls:devvm16922.vll0.facebook.com:35865.18243036951658569703<-tcp:[2401:db00:eef0:1120:3520:0:6c09:3cba]:57588: reading into Frame with M = u64

Caused by:
    peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eof
```

This diff fixes that.

Differential Revision: D87823699
@meta-codesync
Copy link

meta-codesync bot commented Nov 25, 2025

@pzhan9 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87823699.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 25, 2025
@meta-codesync meta-codesync bot closed this in 7271a2e Nov 25, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 25, 2025

This pull request has been merged in 7271a2e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants