Revert "smb2.connect loop"
authorStefan Metzmacher <metze@samba.org>
Fri, 3 Feb 2012 12:07:36 +0000 (13:07 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 16 Jan 2018 06:45:25 +0000 (07:45 +0100)
This reverts commit 32c418ff4334bb1aaa4f45da250f2246d6e5a8be.

source4/torture/smb2/connect.c

index 1a38f2127857e4ca31587fd1be54650da077a251..ecb4871026ec97761470c8dd4f99606039b7d6a7 100644 (file)
@@ -120,17 +120,12 @@ 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");