Skip to content

load all socket IP_ constants#6840

Closed
ahorek wants to merge 1 commit intojruby:masterfrom
ahorek:ip_const
Closed

load all socket IP_ constants#6840
ahorek wants to merge 1 commit intojruby:masterfrom
ahorek:ip_const

Conversation

@ahorek
Copy link
Contributor

@ahorek ahorek commented Sep 16, 2021

https://github.com/jnr/jnr-constants/blob/master/src/main/java/jnr/constants/platform/linux/IP.java

there's a risk that some of these constants don't have to be usable, so it could break feature checks like

if Socket.const_defined?(:Socket::IP_TTL)
  @sock.getsockopt(Socket::IPPROTO_IP, Socket::IP_TTL)
end
  • to consider

@ahorek ahorek added this to the JRuby 9.3.1.0 milestone Oct 8, 2021
@headius headius modified the milestones: JRuby 9.3.1.0, JRuby 9.3.2.0 Oct 11, 2021
@ahorek ahorek modified the milestones: JRuby 9.3.2.0, JRuby 9.4.0.0 Oct 28, 2021
@headius headius mentioned this pull request Feb 7, 2022
@headius
Copy link
Member

headius commented Nov 16, 2022

Still not sure what to do with these. We can define the constants but if we don't handle them it feels misleading. I'm going to punt one more time to 9.4.1.0 and we'll make a decision then.

@headius headius modified the milestones: JRuby 9.4.0.0, JRuby 9.4.1.0 Nov 16, 2022
@headius
Copy link
Member

headius commented Feb 6, 2023

#6839 (comment)

@ahorek ahorek closed this Feb 6, 2023
@ahorek ahorek removed this from the JRuby 9.4.1.0 milestone Feb 6, 2023
@enebo enebo added this to the Invalid or Duplicate milestone Feb 7, 2023
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.

3 participants