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 125996 - Server startup not detected / timed out
Summary: Server startup not detected / timed out
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
: 126098 (view as bug list)
Depends on:
Blocks: 125084
  Show dependency tree
 
Reported: 2008-01-25 12:03 UTC by Erno Mononen
Modified: 2008-01-28 14:39 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 Erno Mononen 2008-01-25 12:03:26 UTC
Separated from issue 125084, refer there for more info. 

With certain configurations the Run action fails to launch the browser due to the following issues in RailsServer:

- detection of Mongrel startup fails due to too strict matching in RailsServer, a version string in the startup string, 
e.g."Mongrel 1.1.2", is enough to cause it fail. End of line characters in the output also cause the detection to fail

- the timeout (20 secs) for startup is too short; on slower machines, and especially when using JRuby, starting up 
often takes considerably longer
Comment 1 Erno Mononen 2008-01-25 12:08:53 UTC
Fixed in trunk. Here are the most relevant commits to this (see #125084 for details):

The pattern for detecting startup (there were couple of iterations):

http://ruby.netbeans.org/source/browse/ruby/railsprojects/test/unit/src/org/netbeans/modules/ruby/railsprojects/server/
RailsServerTest.java?r1=1.2&r2=1.3
http://ruby.netbeans.org/source/browse/ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/server/
RailsServer.java?r1=1.23&r2=1.24

Increasing the timeout to 120 seconds:

http://ruby.netbeans.org/source/browse/ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/server/
RailsServer.java?r1=1.21&r2=1.22
Comment 2 Erno Mononen 2008-01-28 14:39:42 UTC
*** Issue 126098 has been marked as a duplicate of this issue. ***