svn commit: samba r17019 - in branches/SAMBA_4_0/source/libcli/smb2: .

metze at samba.org metze at samba.org
Thu Jul 13 17:17:27 GMT 2006


Author: metze
Date: 2006-07-13 17:17:27 +0000 (Thu, 13 Jul 2006)
New Revision: 17019

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17019

Log:
don't timeout on notifies

metze
Modified:
   branches/SAMBA_4_0/source/libcli/smb2/notify.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/smb2/notify.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb2/notify.c	2006-07-13 16:32:31 UTC (rev 17018)
+++ branches/SAMBA_4_0/source/libcli/smb2/notify.c	2006-07-13 17:17:27 UTC (rev 17019)
@@ -31,6 +31,7 @@
 struct smb2_request *smb2_notify_send(struct smb2_tree *tree, struct smb2_notify *io)
 {
 	struct smb2_request *req;
+	uint32_t old_timeout;
 
 	req = smb2_request_init_tree(tree, SMB2_OP_NOTIFY, 0x20, False, 0);
 	if (req == NULL) return NULL;
@@ -43,7 +44,10 @@
 	SIVAL(req->out.body, 0x18, io->in.completion_filter);
 	SIVAL(req->out.body, 0x1C, io->in.unknown);
 
+	old_timeout = req->transport->options.timeout;
+	req->transport->options.timeout = 0;
 	smb2_transport_send(req);
+	req->transport->options.timeout = old_timeout;
 
 	return req;
 }



More information about the samba-cvs mailing list