fileserver-remove-delay-on-stat-errors-20010925
authorDerrick Brashear <shadow@dementia.org>
Mon, 24 Sep 2001 23:19:46 +0000 (23:19 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 24 Sep 2001 23:19:46 +0000 (23:19 +0000)
commitfb88a009805c1c918d1790046682620388b7a31b
tree0ec111ec0cfd7ddff1997fcbc8b3edfb19de3921
parent02254085a962931edd59d8b089ce521173ba2c86
fileserver-remove-delay-on-stat-errors-20010925

previously and since 3.5 rx enhancements fileserver would delay 3 seconds
on sending an rx abort when the abort was the 11th or more occurance of
the same error on the same call. the problem was fetchstatus/bulkstatus
on a directory on which you have "l" but not "r" would take forever after the
first 5 files (bulkstatus and then fetchstatus on each file, 2*5=10)

so in FetchStatus and BulkStatus stubs we suppress repeated errors from
Check_PermissionRights *only*, which has the effect of suppressing the
problem without removing the theoretical benefit of avoiding letting any
one client throw requests at as as fast as we can abort them unless those
requests happen to be fetch/bulkstat requests which fail a permission check,
but in order to avoid that we'd also need to cache what they last tried
to stat, and then things would get ugly.
src/rx/rx.h
src/viced/afsfileprocs.c