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

HvsockConn shutdown bugfix, added .IsClosed() functions #231

Merged
merged 1 commit into from Feb 17, 2022

Commits on Feb 17, 2022

  1. HvsockConn shutdown, and .IsClosed() function

    Corrected `HvsockConn` `CloseRead`/`Write` to check if the socket
    has been closed before attempting to shutdown the socket for
    reading or writing.
    Additionally, `shutdown` was not respecting whether to shutdown reading
    or writing, and only shutting down the socket for reading.
    
    Added `IsClosed` function to `win32File` (and therefore `win32Pipe` and
    `win32MessageBytePipe`) and `HvsockConn` to check if the socket/pipe
    has been closed already.
    
    Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
    helsaawy committed Feb 17, 2022
    Copy the full SHA
    0aa6c0a View commit details
    Browse the repository at this point in the history