This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 93310 - Incorrect checking procedure of port usage.
Summary: Incorrect checking procedure of port usage.
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Kirill Sorokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-26 13:06 UTC by Michael Nazarov
Modified: 2007-04-25 12:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-01-26 13:06:28 UTC
During AS installation incorrect port checking procedure invoked. For example
default ports for HTTP and HTTPS access are 8080 and 8181. If port is already in
use then next port checked and so on - this is correct. But in case of heavy
ports occupation then all ports from 8080 to 8181 are already in use followed
error appear. Installer checks ports from 8080 to first unused, say 8280 and
select this value as unused. Then checks ports from 8181 to first unused again
8280. To prevent this already found unused ports should be used by installer or
should be treated as used.
Comment 1 Kirill Sorokin 2007-01-27 06:21:29 UTC
Nice find. I thought it is possible but never go to really try it :) Anyway, the
is installer should not allow to proceed, as the ports are duplicate.
Comment 2 Kirill Sorokin 2007-01-27 06:22:35 UTC
-> M10
Comment 3 Kirill Sorokin 2007-01-28 13:02:22 UTC
Fixed. Now the available ports search algorithm takes into account an (optional)
list of forbidden ports, and this list is correctly populated by the glassfish
settings panel.
Comment 4 Michael Nazarov 2007-04-24 11:05:25 UTC
Verified.
BTW I know another one interesting combination but one is hardly unrealizable...
Just a question for now: what will come if all ports from say 8080 to 64K
already occupied? If all ports occupied?
Comment 5 dlipin 2007-04-24 11:10:55 UTC
I guess OS will die earlier.
Comment 6 Kirill Sorokin 2007-04-24 11:14:01 UTC
Hm. Nice. The current logic will return 65536, which would be invalid. So the
user will not be able to proceed, but we could do better and inform that there
are no available ports. File another issue?
Comment 7 Michael Nazarov 2007-04-24 11:14:15 UTC
Yes, I successfully occupied just less then 10K ports :)
So will you answer my "just a question"?
Comment 8 Michael Nazarov 2007-04-24 11:17:36 UTC
Sure I'll file.