Rajafkvp / appengine-maven-plugin

Automatically exported from code.google.com/p/appengine-maven-plugin
Apache License 2.0
0 stars 0 forks source link

Delay when starting Google Appengine devserver #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run mvn appengine:devserver on a system, where the devserver is currently 
stopped.

What is the expected output? What do you see instead?
Expected: Devserver should start immediately.
Instead: The plugin waits for a connection timeout, because it tries to shut 
down the not running devserver before starting.

What version of the product are you using? On what operating system?
1.8.6
Mac OS X 10.9
Java 1.7.0u45

Please provide any additional information below.
The reason is the class AbstractDevAppServerMojo, line 219:

connection.getOutputStream().write(0);

In order to resolve this issue, the connection timeout can be set to 1000 
before, which should usually be no problem, because the devserver runs on the 
same machine.
If it should not be changed by default, at least a connectionTimeout 
configuration property would be nice.

Original issue reported on code.google.com by mor...@cloudme.org on 27 Oct 2013 at 2:05

GoogleCodeExporter commented 9 years ago
Workaround: Just keep the devserver running as long as possible, and let the 
plugin stop the server if you need to redeploy.

See also: 
http://stackoverflow.com/questions/19611848/delay-when-starting-google-appengine
-devserver-with-maven-plugin-on-mac-os-x-mav

Original comment by mor...@cloudme.org on 27 Oct 2013 at 2:08