summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-06 05:16:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:16 -0500
commitec161466017102e202a767f62c870603f46fc5ea (patch)
tree8dec036812ab3b935ee759389a91e00d0d2128ed
parent81f58ffd171caa8ca03097532bb8260da6b5eea5 (diff)
downloadsamba-ec161466017102e202a767f62c870603f46fc5ea.tar.gz
samba-ec161466017102e202a767f62c870603f46fc5ea.tar.bz2
samba-ec161466017102e202a767f62c870603f46fc5ea.zip
r13853: fixed the BASE-NEGNOWAIT test to not fail with a sigpipe if the server
drops the connection on multiple negprots (This used to be commit 34b2855a62368ddffa2946f072e96d21a9f15896)
-rw-r--r--source4/torture/torture.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 4aece9565b..b245492ad6 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -28,6 +28,7 @@
#include "libcli/libcli.h"
#include "lib/ldb/include/ldb.h"
#include "librpc/rpc/dcerpc_table.h"
+#include "lib/events/events.h"
#include "torture/basic/proto.h"
#include "torture/raw/proto.h"
@@ -910,10 +911,10 @@ static BOOL run_negprot_nowait(void)
printf("Filling send buffer\n");
- for (i=0;i<1000;i++) {
+ for (i=0;i<100;i++) {
struct smbcli_request *req;
req = smb_raw_negotiate_send(cli->transport, PROTOCOL_NT1);
- smbcli_transport_process(cli->transport);
+ event_loop_once(cli->transport->socket->event.ctx);
if (req->state == SMBCLI_REQUEST_ERROR) {
printf("Failed to fill pipe - %s\n", nt_errstr(req->status));
torture_close_connection(cli);