1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-06 16:23:49 +03:00

BASE-DEFER_OPEN: be less strict with to late responses

The server might be just busy.

metze
This commit is contained in:
Stefan Metzmacher
2008-02-26 10:31:37 +01:00
parent 278eea57fa
commit 16c60cd347

View File

@@ -664,7 +664,7 @@ static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli
}
if (NT_STATUS_EQUAL(smbcli_nt_error(cli->tree),NT_STATUS_SHARING_VIOLATION)) {
double e = timeval_elapsed(&tv);
if (e < (0.5 * sec) || e > (1.5 * sec)) {
if (e < (0.5 * sec) || e > ((1.5 * sec) + 1)) {
torture_comment(tctx,"Timing incorrect %.2f violation 1 sec == %.2f\n",
e, sec);
return false;