svn commit: samba r13853 - in branches/SAMBA_4_0/source/torture: .
tridge at samba.org
tridge at samba.org
Mon Mar 6 05:16:00 GMT 2006
Author: tridge
Date: 2006-03-06 05:16:00 +0000 (Mon, 06 Mar 2006)
New Revision: 13853
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13853
Log:
fixed the BASE-NEGNOWAIT test to not fail with a sigpipe if the server
drops the connection on multiple negprots
Modified:
branches/SAMBA_4_0/source/torture/torture.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/torture.c
===================================================================
--- branches/SAMBA_4_0/source/torture/torture.c 2006-03-06 01:11:27 UTC (rev 13852)
+++ branches/SAMBA_4_0/source/torture/torture.c 2006-03-06 05:16:00 UTC (rev 13853)
@@ -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 @@
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);
More information about the samba-cvs
mailing list