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 hyper 1.0 and axum 0.7 #1595

Closed
wants to merge 15 commits into from

Commits on Jan 10, 2024

  1. Update deps, hyper 1.0, axum 0.7

    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    9b37761 View commit details
    Browse the repository at this point in the history
  2. Update imports to use util crates

    Some low-hanging import fixes
    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    2d4595a View commit details
    Browse the repository at this point in the history
  3. Use Axum Request and Response in transport

    This commit is primarily converting Request and Response types within
    the transport module to Axum 0.7 Request/Response. There is still more
    to come to finish this conversion.
    
    There are also small changes such as updating the hyper service builder
    syntax.
    
    Over the course of this commit,it was discovered that hyper-util is missing
    `http2_max_pending_accept_reset_streams`.
    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    16b6ae2 View commit details
    Browse the repository at this point in the history
  4. Chop out AddrStream

    Replaced with `tokio::net::TcpStream`.
    Inspired by hyperium/hyper#2850
    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    a3f9d80 View commit details
    Browse the repository at this point in the history
  5. Replace AddrIncoming with TcpListener

    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    c54b484 View commit details
    Browse the repository at this point in the history
  6. Update impl of http_body::Body

    - use `Frame`.
    - update `poll_data` to `poll_frame`
    - remove `poll_trailers` in most places
    
    I am not sure that a simple rename of `poll_data` to `poll_frame` is
    right. I also left one instance of `poll_trailers` in
    *tonic/src/codec/decode.rs*.
    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    e0b454c View commit details
    Browse the repository at this point in the history
  7. More http2 method renames

    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    ba2299f View commit details
    Browse the repository at this point in the history
  8. Use BodyExt trait

    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    85da9ef View commit details
    Browse the repository at this point in the history
  9. Remove hyper::Error::is_connect

    `is_connect` was deprecated when the higher-level client was removed
    from hyper.
    The corresponding comments are removed as well.
    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    686dbf5 View commit details
    Browse the repository at this point in the history
  10. Add Clone to Extensions::insert<T>

    `http::Extensions::insert` requires `T: Clone` so we add it.
    allan2 authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    5e32e00 View commit details
    Browse the repository at this point in the history
  11. Use TcpStream instead of hyper connect

    Ludea authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    cd05673 View commit details
    Browse the repository at this point in the history
  12. add poll_frame, delete poll_trailers

    Ludea authored and ikrivosheev committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    46ee628 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2024

  1. Fixed incoming

    ikrivosheev committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    60eef43 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2024

  1. Fixed

    ikrivosheev committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    03a428d View commit details
    Browse the repository at this point in the history
  2. Fixes

    ikrivosheev committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    69f904c View commit details
    Browse the repository at this point in the history