Skip to content

fix getsockopt failure#6593

Merged
headius merged 1 commit intojruby:masterfrom
ahorek:int_ref
Mar 4, 2021
Merged

fix getsockopt failure#6593
headius merged 1 commit intojruby:masterfrom
ahorek:int_ref

Conversation

@ahorek
Copy link
Contributor

@ahorek ahorek commented Mar 3, 2021

invastigate TypeError: size differ. expected as sizeof(int)=4 but 0 failure

@headius
Copy link
Member

headius commented Mar 4, 2021

Seems good to me. As discussed on Matrix there may be an underlying bug in jnr-ffi or jffi causing the IntBuffer code to fail to get the right value. We will have to investigate that separately.

@ahorek ahorek changed the title WIP: try IntByReference fix getsockopt failure Mar 4, 2021
@ahorek
Copy link
Contributor Author

ahorek commented Mar 4, 2021

it's a workaround, but it should at least fix the random failure. Thanks for the review @headius

@headius headius added this to the JRuby 9.3.0.0 milestone Mar 4, 2021
@headius headius closed this Mar 4, 2021
@headius headius reopened this Mar 4, 2021
@headius headius merged commit 3b37a8b into jruby:master Mar 4, 2021
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.

2 participants