1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r17106: Match Windows timing values on locks.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-07-18 01:17:54 +00:00 committed by Gerald (Jerry) Carter
parent b81d6d1ae9
commit b5aaff6659

View File

@ -5381,6 +5381,11 @@ int reply_lockingX(connection_struct *conn, char *inbuf, char *outbuf,
&status);
if (br_lck && blocking_lock && ERROR_WAS_LOCK_DENIED(status)) {
/* Windows internal resolution for blocking locks seems
to be about 200ms... Don't wait for less than that. JRA. */
if (lock_timeout != -1 && lock_timeout < 200) {
lock_timeout = 200;
}
defer_lock = True;
}