Lines Matching full:is
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
28 // socketConn is a wrapped net.Conn that tries to do connectivity check.
38 // createSocketConnFromReturn is a language sugar to help create socketConn from
51 // In case conn is already wrapped,
52 // return it as-is and avoid double wrapping.
64 // It's nil safe, and returns false if sc itself is nil, or if the underlying
65 // connection is nil.
73 // IsOpen checks whether the connection is open.
75 // It's nil safe, and returns false if sc itself is nil, or if the underlying
76 // connection is nil.
88 if !errors.Is(err, net.ErrClosed) {
89 // The connectivity check failed and the error is not
90 // that the connection is already closed, we need to
108 // an error if the connection is lost.