Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maxSocketLength to native api #13

Merged
merged 1 commit into from
Nov 24, 2020
Merged

Add maxSocketLength to native api #13

merged 1 commit into from
Nov 24, 2020

Conversation

eatkins
Copy link
Contributor

@eatkins eatkins commented Nov 24, 2020

Downstream consumers, e.g. sbt, may need to know the maximum size of the
unix socket address to avoid adding an invalid value. We can expose this
through the UnixDomainSocketLibraryProvider which has JNI and JNA
implementations.

@catap
Copy link
Contributor

catap commented Nov 24, 2020

@eatkins you missed binary for arm64 at darwin.

@eatkins
Copy link
Contributor Author

eatkins commented Nov 24, 2020

No. It builds a fat binary now with both arm64 and x86_64.

@eed3si9n
Copy link
Member

@catap See #12

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Downstream consumers, e.g. sbt, may need to know the maximum size of the
unix socket address to avoid adding an invalid value. We can expose this
through the UnixDomainSocketLibraryProvider which has JNI and JNA
implementations.
@eatkins
Copy link
Contributor Author

eatkins commented Nov 24, 2020

Once this is in, it should be a straightforward change at https://github.com/sbt/sbt/blob/3a7ab8cf5eca4d1e064dd1b198eb7757be2f4ec2/main-command/src/main/scala/sbt/internal/server/Server.scala#L74 to get full arm64 support server side.

@eed3si9n eed3si9n merged commit 9364457 into sbt:master Nov 24, 2020
@eatkins eatkins deleted the max-socket-length branch November 24, 2020 20:20
@eed3si9n
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants