You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hmm, this is interesting. I had been assuming that Jetty automatically reflects all the system properties runtime but it does not work in the way when you build embedded web server like this library does.
I don't have any other ideas so far. I think that the lines of code you added are safe enough for any apps. So, if you send a pull request to this repo (no pressure!), I am happy to merge it and release a new version with the improvement! Perhaps, the hard-coded 40000 should be customizable. In my opinion, reading the standard system property can be the right way to go.
Thanks!
Yeah, I don't think my change is general enough.
If I could work out how to pick up general jetty config then I think it would make sense as a PR but I've tried that for an hour now and couldn't work out how to do it.
Hi Seratch 🙌
I have attempted to increase jetty max "requestHeaderSize" but failed until I created a custom JettyLauncher.
Failed attempts:
web.xml
:java jar start command:
Eventually I got it working by basically copy-pasting
skinny.standalone.JettyServer
(https://github.com/skinny-framework/skinny-micro/blob/master/micro-server/src/main/scala/skinny/standalone/JettyServer.scala) and modifying it very slightly to configure the requestHeaderSize:Do you know of any cleaner way to do this?
The text was updated successfully, but these errors were encountered: