Mike Brzozowski <mike.brzozowski <at> hp.com> writes: > http://shorl.com/fraponurefyfu > ...which essentially boils down to some strange confluence of > Jetty + Firefox + long cookie strings = bad times. However I've observed this > with IE 7 as well as Firefox 2.0.0.11.
I was eventually able to figure it out. In case anyone's interested, this is a known bug in Jetty: http://jira.codehaus.org/browse/JETTY-336 ...which just kills any HTTP request whose headers overflow its header buffer (by default, 4 KB). This sounds pretty pathological but if you're deploying an app on a domain where other developers like to attach lots of cookies of their own to the root of your domain, you can easily reach this limit. The workaround is to increase the headerBufferSize parameter in the Jetty connector: component.getContext().getParameters().add("headerBufferSize", Integer.toString(HEADER_BUFFER)); Since 4KB is the legal limit for any _single_ cookie, I just set it to 8KB. Hopefully my users won't accumulate that much cookie cruft... --Mike

