mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-10-27 05:29:58 -04:00
Allow for message pipes in message readmode for Windows named pipes.
This commit is contained in:
1 parent
ab35fc04b6
commit
211d6ebb39
1 file changed
+5
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user