Skip to content

Commit

Permalink
update doc with default timeout.
Browse files Browse the repository at this point in the history
The timeout value was changed from 5 to 2 seconds in microsoft#80
  • Loading branch information
groob committed Jul 24, 2018
1 parent a6d595a commit c534c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (s pipeAddress) String() string {

// DialPipe connects to a named pipe by path, timing out if the connection
// takes longer than the specified duration. If timeout is nil, then we use
// a default timeout of 5 seconds. (We do not use WaitNamedPipe.)
// a default timeout of 2 seconds. (We do not use WaitNamedPipe.)
func DialPipe(path string, timeout *time.Duration) (net.Conn, error) {
var absTimeout time.Time
if timeout != nil {
Expand Down

0 comments on commit c534c2f

Please sign in to comment.