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

Update to Mio v0.8 #4449

Merged
merged 1 commit into from
Feb 13, 2022
Merged

Update to Mio v0.8 #4449

merged 1 commit into from
Feb 13, 2022

Commits on Feb 13, 2022

  1. Update to Mio v0.8

    The major breaking change in Mio v0.8 is TcpSocket type being removed.
    
    Replacing Mio's TcpSocket we switch to the socket2 library which
    provides a similar type Socket, as well as SockRef, which provide all
    options TcpSocket provided (and more!).
    
    Tokio's TcpSocket type is now backed by Socket2 instead of Mio's
    TcpSocket. The main pitfall here is that socket2 isn't non-blocking by
    default, which Mio obviously is. As a result we have to do potentially
    blocking calls more carefully, specifically we need to handle
    would-block-like errors when connecting the TcpSocket ourselves.
    
    One benefit for this change is that adding more socket options to
    TcpSocket is now merely a single function call away (in most cases
    anyway).
    Thomasdezeeuw committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    bce17fa View commit details
    Browse the repository at this point in the history