You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note I am only filing this as a precursor to submitting a patch to resolve this issue. I hope that this is the right place for it! I sincerely apologize if it is not. Go is an amazing community and language and I hope that the effort here helps!
What version of Go are you using (go version)?
$ go version
go version go1.18.1 darwin/arm64
Does this issue reproduce with the latest release?
Yes, tried compiling from source fb75c2da91b9cccf05ec6baad2636325c5d96751.
What operating system and processor architecture are you using (go env)?
(My mistake, of course, but) I tried to build code that called GetsockoptTCPInfo on a Darwin platform. Yes, of course, I now realize how silly that was. But, it got me thinking that ...
What did you expect to see?
... the x/sys package for Darwin should expose TCP_CONNECTION_INFO (the equivalent to TCP_INFO in Linux).
What did you see instead?
I saw build errors.
The text was updated successfully, but these errors were encountered:
Change https://go.dev/cl/411734 mentions this issue: unix: Add support for TCP_CONNECTION_INFO on macOS
seankhliao
changed the title
x/sys: Linux supports TCP_INFO but Darwin does not support TCP_CONNECTION_INFO
x/sys/unix: add TCP_CONNECTION_INFO
Jun 11, 2022
Note I am only filing this as a precursor to submitting a patch to resolve this issue. I hope that this is the right place for it! I sincerely apologize if it is not. Go is an amazing community and language and I hope that the effort here helps!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, tried compiling from source
fb75c2da91b9cccf05ec6baad2636325c5d96751
.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
(My mistake, of course, but) I tried to build code that called
GetsockoptTCPInfo
on a Darwin platform. Yes, of course, I now realize how silly that was. But, it got me thinking that ...What did you expect to see?
... the x/sys package for Darwin should expose TCP_CONNECTION_INFO (the equivalent to TCP_INFO in Linux).
What did you see instead?
I saw build errors.
The text was updated successfully, but these errors were encountered: