mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r17106: Match Windows timing values on locks.
Jeremy.
This commit is contained in:
parent
b81d6d1ae9
commit
b5aaff6659
@ -5381,6 +5381,11 @@ int reply_lockingX(connection_struct *conn, char *inbuf, char *outbuf,
|
|||||||
&status);
|
&status);
|
||||||
|
|
||||||
if (br_lck && blocking_lock && ERROR_WAS_LOCK_DENIED(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;
|
defer_lock = True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user