Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert: Changes Session back to own the socket #25

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

AnthonyGrondin
Copy link
Contributor

This was done as a fix for the server, but it seems that letting T and simply passing &mut T fixes the original issue this PR was intended to fix.

Other libraries like embedded_tls take ownership of the socket. This allows to move the session around without having to keep a reference to the socket alive.

I've ran the justfile and everything compiles. This unblocks my fork of reqwless that attempts to use esp-mbedtls as a TLS wrapper (coming soon).

Ref: c094cfc

This was done as a fix for the server, but it seems that letting T and simply passing &mut T fixes the original issue this PR was intended to fix.

Other libraries like embedded_tls take ownership of the socket. This allows to move session around without having to keep a reference to the socket alive.

Ref: c094cfc
@bjoernQ
Copy link
Collaborator

bjoernQ commented Feb 13, 2024

I think the build fails because of the changes around atomics (not related to this PR). We probably need to update the HAL dependencies and remove the atomic-emulation configs from .cargo/config.toml

Code changes look good to me

Copy link
Collaborator

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks for taking care of updating the dependencies!

@bjoernQ bjoernQ merged commit 360bf59 into esp-rs:main Feb 14, 2024
1 check passed
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