smb2.connect loop
authorStefan Metzmacher <metze@samba.org>
Sun, 29 Jan 2012 10:30:59 +0000 (11:30 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 16 Jan 2018 06:45:24 +0000 (07:45 +0100)
source4/torture/smb2/connect.c

index ecb4871026ec97761470c8dd4f99606039b7d6a7..1a38f2127857e4ca31587fd1be54650da077a251 100644 (file)
@@ -120,12 +120,17 @@ static NTSTATUS torture_smb2_write(struct torture_context *tctx, struct smb2_tre
        r.in.length      = data.length;
        r.in.offset      = 0;
 
+while(true) {
        status = smb2_read(tree, tree, &r);
        if (!NT_STATUS_IS_OK(status)) {
                torture_comment(tctx, "read failed - %s\n", nt_errstr(status));
                return status;
        }
 
+       printf("."); fflush(stdout);
+       smb_msleep(10000);
+}
+
        if (data.length != r.out.data.length ||
            memcmp(data.data, r.out.data.data, data.length) != 0) {
                torture_comment(tctx, "read data mismatch\n");