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

feat(transport): add unix socket support in server #861

Merged

Commits on Feb 14, 2022

  1. tonic: implement the server Connected trait for tokio UnixStream

    This impl is needed in order to use a tokio UnixStream as the
    `incoming` argument in methods like
    `tonic::transport::server::Router::serve_with_incoming_shutdown`
    
    Fixes: hyperium#856
    
    Signed-off-by: Anthony Green <agreen@starry.com>
    agreen17 committed Feb 14, 2022
    Copy the full SHA
    7fea6fb View commit details
    Browse the repository at this point in the history
  2. examples: update uds example to use tokio UnixListenerStream

    tokio-stream packages a UnixListenerStream that implements
    futures_core::Stream. Using this cuts down on consumer boilerplate
    when using UnixStreams with a tonic server.
    
    Refs: hyperium#856
    
    Signed-off-by: Anthony Green <agreen@starry.com>
    agreen17 committed Feb 14, 2022
    Copy the full SHA
    a58bb37 View commit details
    Browse the repository at this point in the history
  3. tests: add integration test for UdsConnectInfo

    Refs: hyperium#856
    
    Signed-off-by: Anthony Green <agreen@starry.com>
    agreen17 committed Feb 14, 2022
    Copy the full SHA
    5764b33 View commit details
    Browse the repository at this point in the history