Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 259326 - Echo console listening port (rather than just port configured to listen)
Summary: Echo console listening port (rather than just port configured to listen)
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.5 M5   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 18:24 EST by Erin Schnabel CLA
Modified: 2008-12-30 11:49 EST (History)
1 user (show)

See Also:


Attachments
update to FrameworkConsole.java (1.43 KB, patch)
2008-12-18 18:26 EST, Erin Schnabel CLA
tjwatson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erin Schnabel CLA 2008-12-18 18:24:56 EST
The console code currently only echo's the port you configured, rather than the port that is actually being listened on.

If you specify "0" as the console port, the Java ServerSocket will pick an unused transient port value to listen on-- but there is no way to tell what port that is.

This is a quick mod to FrameworkConsole so that it echos the local port (i.e. the port it is actually bound to / listening on) rather than just echoing the property value
Comment 1 Erin Schnabel CLA 2008-12-18 18:26:22 EST
Created attachment 120904 [details]
update to FrameworkConsole.java
Comment 2 Thomas Watson CLA 2008-12-30 11:48:32 EST
Patch released.  Thanks Erin.