I think it's just a misconfiguration on my part.
Sample project (from basic lift archetype)
git clone
https://github.com/esspe/LiftJetty7.git
cd LiftJetty7
mvn jetty:run
Now try to request
http://127.0.0.1:8080/async
you will see a 404 not found
If you switch to 6.1.26 jetty in pom:
mv pom.xml pom-jetty-7.xml
mv pom-jetty-6.xml pom.xml
mvn jetty:run
than you can request
http://127.0.0.1:8080/async and see a Response
several
seconds later.
The /async is routed to lib.Api:
object Api extends RestHelper {
serve {
case "async" :: Nil Get req =>
RestContinuation.async {
writeResponse => {
future {
Thread.sleep(5000)
writeResponse(<xml>Response</xml>)
}
}
}
}
}
I will try to make a sample app for my first bug with delays later.
Currently i suspect, that it's the problem of Java on FreeBSD. I'm
waiting for linux server to confirm that.