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

CAD-3444 snocket changes from p2p-master #3369

Merged
merged 6 commits into from
Sep 20, 2021
Merged

CAD-3444 snocket changes from p2p-master #3369

merged 6 commits into from
Sep 20, 2021

Commits on Sep 20, 2021

  1. Snocket.Accept

    Rescue Alex Vieth's 'Accept' modification.  I couldn't cherry-pick the
    commit since it was burried inside a merge commit.
    
    There's no proper way to fix `Ouroboros.Network.Soocket.fromSnocket`,
    but this is ok, as it will be removed in a later commit.
    coot committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    feef08f View commit details
    Browse the repository at this point in the history
  2. Use a counter to provide a unique remote addr

    The inbound governor requires all clients to have a unique address. UNIX
    sockets and windows named pipes lack this so we use a counter to
    generate remote addresses for local clients.
    karknu authored and coot committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    cbda9be View commit details
    Browse the repository at this point in the history
  3. snockets - monadic toBearer

    Running monadic actions inside toBearer is useful when using file
    descriptors of a simulation environment.
    coot committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    ab942f9 View commit details
    Browse the repository at this point in the history
  4. snocket: support getLocalName for named pipes (Windows)

    On Windows there's no way of getting path of the named pipe.
    Unfortunatelly, `GetFinalNameByHandle` does not support named pipes.
    This patch alters Snocket interface which allows to store the path
    within 'LocalSnocket'.  For Window's named pipes `getLocalAddr` and
    `getRemoteAddr` return the same path.
    coot committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    dc7b4d4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f1d68a3 View commit details
    Browse the repository at this point in the history
  6. snocket: make Window's LocalSocket strict

    This will match the semantics of LocalSocket on other platforms.
    coot committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    e7efa14 View commit details
    Browse the repository at this point in the history