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 28023 - HTTP monitor opens ServerSocket during startup
Summary: HTTP monitor opens ServerSocket during startup
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: HTTP Monitor (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Ana.von Klopp
URL:
Keywords: PERFORMANCE
Depends on: 28580
Blocks:
  Show dependency tree
 
Reported: 2002-10-15 15:18 UTC by _ rkubacki
Modified: 2005-12-19 13:11 UTC (History)
1 user (show)

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 _ rkubacki 2002-10-15 15:18:57 UTC
General policy is not to initialize unneceseary
things during startup. Opening ServerSocket
doesn't look like high priority task. Many users
may never touch related functionality but they are
affected by its initialization. 

I suggest either to postpone init phase until the
moment when it becames apparent that it is
required or schedule this with _low_ priority to
future like openfile server in utilities module

Also current code doesn't handle conflicts well
and HTTP monitor is not able to work properly if I
run two IDE instances.
Comment 1 Ana.von Klopp 2002-10-16 17:20:18 UTC
The reason for the socket server is to allow web servers used for execution 
to discover the IDE instance from whence the request came. However, the 
current solution means that it's only possible to run one instance of the 
client per host, which is incorrect also. I can't find the bug id for that 
(may be logged in bugtraq but I thought I moved those). 

I meant to fix 
this for S1S4/NB3.4, but it involves changes to several modules so we 
decided it was too risky. 
Comment 2 _ rkubacki 2003-01-13 12:18:54 UTC
Tegal planning
Comment 3 Ana.von Klopp 2003-02-05 18:16:23 UTC
I will remove the socket as soon as the tomcatint module 
can declare the host. The work for the filter to read the 
parameters is already complete. 
Comment 4 _ rkubacki 2003-02-06 07:50:14 UTC
You can write the patch for tomcatint to declare anything you need.
Just find the part of code where monitor specific stuff is handled
(set or unset from server.xml) and add what you need. Sorry but from
your description it is not clear to me what to do and Milan can't help
you just now.
Comment 5 Petr Jiricka 2003-02-06 16:10:55 UTC
The port number is now declared in the monitor filter. 
Please check the next continuous build; it will contain 
the change.
Comment 6 Ana.von Klopp 2003-02-07 18:04:02 UTC
The server socket is o longer used since the monitor server 
side component is notified of the internal HTTP server port 
during startup. 
Comment 7 Jaroslav Pospisil 2005-12-19 13:11:29 UTC
VERIFIED