Skip to content

Commit

Permalink
Switch Solaris-derivatives away from listen_unix (caddyserver#6021)
Browse files Browse the repository at this point in the history
Solaris 10 and Illumos are missing SO_REUSEPORT. Treat them more like
Windows (i.e. use the listener pool).
  • Loading branch information
insom authored Jan 6, 2024
1 parent 8a50f19 commit 76611fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !unix
//go:build !unix || solaris

package caddy

Expand Down
2 changes: 1 addition & 1 deletion listen_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// Even though the filename ends in _unix.go, we still have to specify the
// build constraint here, because the filename convention only works for
// literal GOOS values, and "unix" is a shortcut unique to build tags.
//go:build unix
//go:build unix && !solaris

package caddy

Expand Down
2 changes: 1 addition & 1 deletion listen_unix_setopt.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build unix && !freebsd
//go:build unix && !freebsd && !solaris

package caddy

Expand Down

0 comments on commit 76611fa

Please sign in to comment.