Allow for message pipes in message readmode for Windows named pipes.

This commit is contained in:
Tejaswini Duggaraju
2018-05-25 12:13:39 -07:00
parent ab35fc04b6
commit 211d6ebb39
+5 -2
View File
@@ -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 {