[ 
https://issues.apache.org/jira/browse/FELIX-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415937#comment-13415937
 ] 

Rob Walker commented on FELIX-2786:
-----------------------------------

Sounds like a useful addition to me - I'd be happy to see this patch committed 
into the trunk if others agree with it's usefulness.

We added a feature to the old HTTP service to publish the randomly chosen port 
via a service property. I forget whether the new Http Jetty service has this 
feature, but if not then it'd also be needed to take advantage of this feature 
so that detailed the selected port can be determined by other bundles.
                
> Allow HTTPService to pick a random free port in a given range
> -------------------------------------------------------------
>
>                 Key: FELIX-2786
>                 URL: https://issues.apache.org/jira/browse/FELIX-2786
>             Project: Felix
>          Issue Type: Improvement
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>            Reporter: Holger Hoffstätte
>            Priority: Minor
>         Attachments: felix-2786.diff
>
>
> Sometimes we cannot configure the used port for a HTTPService up front, so it 
> would be nice to have the service select one itself; the chosen port would 
> then have to be communicated to the outside world. Since it should not just 
> select any random port e.g. for security reasons, it should be possible to 
> specify a range as property.
> Marcel suggested a port config value along the lines of port="random" or 
> port="pick-from-range(8000,9000)".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to