• Dave Syer's avatar
    Use server.port=0 for scanning · 8efa2fc5
    Dave Syer authored
    This leverages existing capabilities of teh JDK and the OS
    to grab a port at random and not have it stolen by another
    process. It's very hard to avoid that race condition in
    pure Java code, so why bother?
    
    User can set port<0 to disable autoStart of connectors (e.g.
    to start a web application context but not have it listen on
    any port). In that case the actual socket port will be set to
    0 (and therefore if it ever starts up the local port will
    be random).
    8efa2fc5
Name
Last commit
Last update
..
src Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
pom.xml Loading commit data...