git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7200346
)
smb2.connect loop
author
Stefan Metzmacher
<metze@samba.org>
Sun, 29 Jan 2012 10:30:59 +0000
(11:30 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 6 Mar 2012 18:48:47 +0000
(19:48 +0100)
source4/torture/smb2/connect.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/connect.c
b/source4/torture/smb2/connect.c
index 0067de0fad9d9970de4ea30707a2b5105d808425..3a74343e15bf444061f1dac473bfcac93c69c3a7 100644
(file)
--- a/
source4/torture/smb2/connect.c
+++ b/
source4/torture/smb2/connect.c
@@
-118,12
+118,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)) {
printf("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) {
printf("read data mismatch\n");