lighttpd fails to forward response from play since change to Netty instead of Mina

Bug #581009 reported by dirk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Fix Committed
Critical
Nicolas Leroux

Bug Description

Play 1.1 on github, revision "Netty instead of Mina" 703f9e21830548fe489d3ccbc7a1518272f67b07:
http://github.com/pk11/play-1.1-mirror/commit/703f9e21830548fe489d3ccbc7a1518272f67b07#diff-5

After updating to this revision, play continues to work fine if hit from a web server or from wget, but if it's behind lighttpd, the response from the web server never comes back.
lighttpd forwards the request ok, and in the play TRACE output it appears that play responds normally, but lighttpd never forwards the response from play back to the client.
The only situation in which lighttpd does forward the response from play normally is when there is a 500 error. If there is a 404, 200 or any other kind of response from play lighttpd does not forward the response.

I looked at the code and noticed that play handles 500's differently from other responses, but I was unable to figure out what the underlying problem is:

framework/src/play/server/PlayHandler.java:

77: } catch (Exception ex) {
78: serve500(ex, ctx, nettyRequest);
79: }

Changed in play:
importance: Undecided → Critical
assignee: nobody → Nicolas Leroux (nicolas-lunatech)
milestone: none → 1.1
Revision history for this message
Nicolas Leroux (nicolas-lunatech) wrote :

I think this is what was fixed in https://bugs.launchpad.net/bugs/580691 . Can you try with the latest version? thanks

Revision history for this message
dirk (australiandeveloper) wrote :

Yes, it works now.
Thanks!

Changed in play:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.