Closed
Bug 883981
Opened 10 years ago
Closed 10 years ago
correctly reflect the server's port in httpd.js
Categories
(Testing :: General, defect)
Testing
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla24
People
(Reporter: froydnj, Assigned: froydnj)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.44 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
No description provided.
![]() |
Assignee | |
Comment 1•10 years ago
|
||
httpd.start says that you can pass -1 in to automagically choose a port. Unfortunately, the identity of that port is not correctly reflected in the ServerIdentity that the server exposes, since the -1 port is passed directly in to ServerIdentity, with bad consequences: http://mxr.mozilla.org/mozilla-central/source/netwerk/test/httpserver/httpd.js#903 Instead, initialize the ServerIdentity with the port from the listening socket we initialized.
Attachment #763714 -
Flags: review?(ted)
Comment 2•10 years ago
|
||
Comment on attachment 763714 [details] [diff] [review] correctly reflect the server's port in httpd.js Review of attachment 763714 [details] [diff] [review]: ----------------------------------------------------------------- Does -1 actually work? I know zero is the common way to do this at the actual BSD socket API level.
Attachment #763714 -
Flags: review?(ted) → review+
Updated•10 years ago
|
Assignee: nobody → nfroyd
![]() |
Assignee | |
Comment 3•10 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #2) > Does -1 actually work? I know zero is the common way to do this at the > actual BSD socket API level. nsServerSocket will accept 0, but nsIServerSocket and nsIHttpServer both document -1 as the "let a port be chosen for me". So it seemed better to use that instead.
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c660bb960b57
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Updated•5 years ago
|
Component: httpd.js → General
You need to log in
before you can comment on or make changes to this bug.
Description
•