Bug #9363

test_http.rb and others must be run as root

Added by Charles Nutter over 1 year ago. Updated over 1 year ago.

[ruby-core:59555]
Status:Rejected
Priority:Normal
Assignee:-
ruby -v:2.1p0 Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN

Description

It seems like test/net/test_http.rb (and perhaps other network-related tests) must be run as root to test properly...or I am not seeing how to run them without using privileged ports.

We would like to use these tests in JRuby, and currently that's not possible since they bind to privileged.

If this is the case, we should fix the tests.

If this is not the case, please help me figure out how to run these tests without restricted ports.

History

#1 Updated by Charles Nutter over 1 year ago

  • Status changed from Open to Rejected

Sorry, ignore this. I discovered that it was a bug in JRuby's BasicSocket.for_fd logic causing it to try to bind to the fd as if it were a port.

Also available in: Atom PDF