From 211d6ebb39655a0cda2303ccf6d422191dbf4304 Mon Sep 17 00:00:00 2001 From: Tejaswini Duggaraju Date: Fri, 25 May 2018 12:13:39 -0700 Subject: [PATCH] Allow for message pipes in message readmode for Windows named pipes. --- pipe.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pipe.go b/pipe.go index 82cbe7a..34c63e7 100644 --- a/pipe.go +++ b/pipe.go @@ -181,9 +181,12 @@ func DialPipe(path string, timeout *time.Duration) (net.Conn, error) { return nil, err } - if state&cPIPE_READMODE_MESSAGE != 0 { + /** + Windows support message type pipes in message-read mode only. Removing this check to allow for windows named pipes. + */ + /*if state&cPIPE_READMODE_MESSAGE != 0 { return nil, &os.PathError{Op: "open", Path: path, Err: errors.New("message readmode pipes not supported")} - } + }*/ f, err := makeWin32File(h) if err != nil {