https://bz.apache.org/bugzilla/show_bug.cgi?id=66313

            Bug ID: 66313
           Summary: Allow lockdiscovery to be disabled
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: major
          Priority: P2
         Component: mod_dav_fs
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 38410
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38410&action=edit
Patch to allow lockdiscovery to be disabled

mod_dav-fs scales badly when a few clients run PROPFIND requests to discover
directory content. Each PROPFIND involves lockdiscovery, which in turn waits
for a locked access to the file containing the lock database. Performances
quickly drop because of lock contention on this file.

I recently experienced that a few client using RaiDrive/2022.6.56.0 can easily
disrupt Apache + mod_dav_fs because of this problem.

The proposed patch adds a DAVLockDiscovery configuration directive that allows
lockdiscovery to be disabled. Its argument is an Apache expression so that
flexible configuration are possible. For instance, the feature can be denied to
an abusive client on behalf of User-Agent, while still being offered to others.

If DAVLockDiscovery is not specified, the behavior is unchanged.

When lockdiscovery is disabled, an empty lockdiscovery property is returned on
POPRFIND methods, just like if no lock was set on the object. That should cause
no regression, since a client cannot rely on lockdiscovery to decide when a
file should be accessed, the LOCK methood must be used.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to