-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mysql-srv: Merge PacketReader and PacketWriter into PacketConn
Previously, mysql-srv split the TcpStream into two streams to create PacketReader and PacketWriter. However, this approach is incompatible with TLS streams, as splitting a TLS stream is not recommended (tokio-rs/tls#40). This commit merges PacketReader and PacketWriter into a single PacketConn struct, which implements both the AsyncRead and AsyncWrite traits. This refactor lays the groundwork for MySQL TLS support. Change-Id: I41ec4802ef3f7d0e423c3803b45376047bf64912
- Loading branch information
Showing
7 changed files
with
221 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.