Skip to content

treat port nil as 0 for pack_sockaddr_in#3219

Merged
kares merged 2 commits intojruby:masterfrom
reuben-sutton:fix_pack_sockaddr_incompatability
Aug 6, 2015
Merged

treat port nil as 0 for pack_sockaddr_in#3219
kares merged 2 commits intojruby:masterfrom
reuben-sutton:fix_pack_sockaddr_incompatability

Conversation

@reuben-sutton
Copy link
Contributor

Ensure compatability with MRI Ruby

closes #3156

@kares
Copy link
Member

kares commented Aug 5, 2015

same here, please add the spec/ruby/library/socket/shared/pack_sockaddr.rb change in a separate commit

@kares
Copy link
Member

kares commented Aug 5, 2015

... also maybe you could instead open a PR targeting jruby-1_7 ... otherwise we'll have to cherry-pick

@reuben-sutton
Copy link
Contributor Author

@kares not a problem - it's also an issue on master, so should I send two?

@reuben-sutton
Copy link
Contributor Author

Hi @kares - That's done. It affected both 9k and 1.7 so I added #3225 to backport.

@kares
Copy link
Member

kares commented Aug 5, 2015

great thanks, for the future if you only target 1_7 it will eventually end up in master as well with the merge
... for this one do not worry about it, thanks again.

kares added a commit that referenced this pull request Aug 6, 2015
…tability

treat port nil as 0 for pack_sockaddr_in
@kares kares merged commit 2187665 into jruby:master Aug 6, 2015
@enebo enebo modified the milestone: Non-Release May 25, 2016
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.

Socket.pack_sockaddr_in fails for nil port (MRI doesn't)

3 participants