playframework/Play20 — pull request #162 by rschellhorn (2012-03-07 12:14:11+00:00)
Title: [#129] Closing the server should not shutdown the Akka system permanently

As reported by Mathilde in issue #129 it is currently not possible to have two functional tests. A second test will block after the first request to the play server

```
running(server, HTMLUNIT) { browser =>
browser.goTo("http://localhost:3333/")
}
running(server, HTMLUNIT) { browser =>
browser.goTo("http://localhost:3333/") // the server will never respond
}
```

This is caused by the Play server shutdown logic, which also shuts down the underlying Akka system permanently. Starting a new server should initialize a new Akka system.

Note that although this pull request works, maybe someone with more knowledge of the Play server internals should reviews the change!