From ec161466017102e202a767f62c870603f46fc5ea Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 6 Mar 2006 05:16:00 +0000 Subject: 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) --- source4/torture/torture.c | 5 +++-- 1 file 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); -- cgit