Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] useFileMappedBuffer bug?

Any chance of getting this ported to 8? I've been wasting time on CSS file changes for a long time.

On Wed, Jan 16, 2013 at 4:08 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
It has been fixed in master.

http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/commit/?id=4037e6111fa59adbba2b1ef0b4d55a359308a7e8

New Milestone release is being planned/discussed this week.

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts


On Wed, Jan 16, 2013 at 3:03 PM, ccleve <ccleve.tech@xxxxxxxxx> wrote:
I set my webdefault.xml file to tell DefaultServlet to set useFileMappedBuffer to false. Jetty seems to be locking the file anyway, which makes development difficult.

I traced through the Jetty source code, and discovered this in org.eclipse.jetty.server.ResourceCache:

    public ResourceCache(ResourceCache parent, ResourceFactory factory, MimeTypes mimeTypes,boolean useFileMappedBuffer,boolean etags)
    {
        _factory = factory;
        _cache=new ConcurrentHashMap<String,Content>();
        _cachedSize=new AtomicInteger();
        _cachedFiles=new AtomicInteger();
        _mimeTypes=mimeTypes;
        _parent=parent;
        _etagSupported=etags;
    }

Note that useFileMappedBuffer is a parameter, but it never gets used. This appears to be the place where the value is getting lost.

I'm using Jetty 9.0.0.M4.

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top