Skip to content

Commit 04f1d91

Browse files
committed
Make write on closed-for-write conn clearer
1 parent d5d5145 commit 04f1d91

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

ziti/edge/network/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (conn *edgeConn) Write(data []byte) (int, error) {
217217
if conn.IsClosed() {
218218
return 0, errors.New("connection closed")
219219
}
220-
return 0, errors.New("calling Write() after CloseWrite()")
220+
return 0, errors.New("connection closed for writes")
221221
}
222222

223223
if conn.sender != nil {

ziti/edge/posture/domain_notwindows.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !windows
2-
// +build !windows
32

43
/*
54
Copyright 2019 NetFoundry Inc.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
//go:build !windows
2-
// +build !windows
32

43
package posture
54

6-
// NewEvenState is a stand-in for actual non-Windows event watching
5+
// NewEventState is a stand-in for actual non-Windows event watching
76
func NewEventState() EventState {
87
return &NoOpEventState{}
98
}

ziti/edge/posture/process_notwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !windows
1+
//go:build !windows
22

33
/*
44
Copyright 2019 NetFoundry Inc.

0 commit comments

Comments
 (0)