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

Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream<S> #74

Merged
merged 5 commits into from
Oct 1, 2021

Conversation

jeromegn
Copy link
Contributor

@jeromegn jeromegn commented Sep 30, 2021

We've been needing this to getsockopt on the underlying stream. I've been maintaining a fork like that for a long time now but never upstreamed it.

Edit: I've removed the AsyncRead + AsyncWrite + Unpin trait bounds on S for tokio-native-tls's TlsStream<S>'s get_ref(&self) and get_mut(&self) functions. They didn't seem necessary and the compiler would've needed me to only be able to implement AsRawFd if S was also AsyncRead + AsyncWrite + Unpin which didn't make sense to me. I'm happy to bring them back if that's a problem.

Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

LGTM.

tokio-rustls/src/server.rs Outdated Show resolved Hide resolved
tokio-rustls/src/server.rs Show resolved Hide resolved
Copy link
Member

@quininer quininer left a comment

Choose a reason for hiding this comment

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

LGTM

@quininer quininer merged commit 438cb8f into tokio-rs:master Oct 1, 2021
@jeromegn
Copy link
Contributor Author

jeromegn commented Oct 1, 2021

Implemented the requested changes.

Noah-Kennedy added a commit that referenced this pull request Feb 4, 2023
Closes #126.

# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream<S> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#65]: #74
[#65]: #93
[#65]: #125
Noah-Kennedy added a commit that referenced this pull request Feb 4, 2023
Closes #126.

# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream<S> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#74]: #74
[#93]: #93
[#125]: #125
Noah-Kennedy added a commit that referenced this pull request Feb 4, 2023
Closes #126.

# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream\<S\> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#74]: #74
[#93]: #93
[#125]: #125
Noah-Kennedy added a commit that referenced this pull request Feb 4, 2023
# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream\<S\> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#74]: #74
[#93]: #93
[#125]: #125
Noah-Kennedy added a commit that referenced this pull request Feb 7, 2023
# 0.3.1 (February 4th, 2023)

### Additions
- Add Vendored Feature ([#125])
- Implement AsRawFd for both tokio-rustls and tokio-native-tls TlsStream\<S\> ([#74])

### Internal
- Fix warning about renamed lint ([#93])
- fix a handful of lints, one of which was breaking the build ([#65])

[#65]: #65
[#74]: #74
[#93]: #93
[#125]: #125
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.

3 participants