sockopt_unix.go (etcd-3.5.6) | : | sockopt_unix.go (etcd-3.5.7) | ||
---|---|---|---|---|
//go:build !windows | // Copyright 2021 The etcd Authors | |||
// +build !windows | // | |||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||||
// you may not use this file except in compliance with the License. | ||||
// You may obtain a copy of the License at | ||||
// | ||||
// http://www.apache.org/licenses/LICENSE-2.0 | ||||
// | ||||
// Unless required by applicable law or agreed to in writing, software | ||||
// distributed under the License is distributed on an "AS IS" BASIS, | ||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
// See the License for the specific language governing permissions and | ||||
// limitations under the License. | ||||
//go:build !windows && !solaris | ||||
// +build !windows,!solaris | ||||
package transport | package transport | |||
import ( | import ( | |||
"syscall" | "syscall" | |||
"golang.org/x/sys/unix" | "golang.org/x/sys/unix" | |||
) | ) | |||
func setReusePort(network, address string, conn syscall.RawConn) error { | func setReusePort(network, address string, conn syscall.RawConn) error { | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 16 lines changed or added |