replay-framework / replay

Fork of the Play1 Framework
Other
19 stars 11 forks source link

`replay-netty4` doesn't properly render static files #157

Open asolntsev opened 1 year ago

asolntsev commented 1 year ago

The bug can be easily reproduced by removing this line in replay-tests.gradle:

  exclude 'ui/hello/RenderStaticFilesSpec*' // TODO Need to clarify why `replay-netty4` doesn't render static files properly

See https://github.com/codeborne/replay/pull/150

cies commented 1 year ago

I found it goes wrong with concurrent loading of static files. I can load one, but I cannot load many "at the same time". Since we serve quite a few files this was (usually CSS and JS assets) this problem shows immediately when I try to run our application using netty4: many of the static file request never get a response, therefor the browser things it's loading forever.

cies commented 1 year ago

I found a netty-4.1 branch for Play1, not sure if it is of value, just putting the link here just in case:

https://github.com/aleksandy/play1/commit/f36360665570541b2e7ee33dd71258604c75a401