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

RFC: Implement a handshake for VSock #1443

Closed
wants to merge 2 commits into from

Commits on Dec 11, 2019

  1. hvsock: Add new command Upgrade <port_num> to shake hand

    This commit add a simple handshake interaction like WebSocket:
    A new command called Upgrade <port_num>\n to request connect port.
    hybrid vsock response 101\n (Switching Protocol) if connected.
    hybrid vsock response 504\n (Service Unavailable) if guest has not
    listened on the port.
    
    Signed-off-by: Hui Zhu <teawater@antfin.com>
    teawater committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    e874a35 View commit details
    Browse the repository at this point in the history
  2. hvsock: Update test for command Upgrade <port_num>

    Update test_peer_request and test_local_request in connection.rs.
    Add test_local_request_need_reply and
    test_local_request_timeout_need_reply to connection.rs.
    Add test_local_connection_with_upgrade,
    test_local_close_with_upgrade and
    test_local_connection_with_upgrade_get_oprst to muxer.rs.
    
    Signed-off-by: Hui Zhu <teawater@antfin.com>
    teawater committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    950909c View commit details
    Browse the repository at this point in the history