[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Tue Dec 22 08:08:37 MST 2009


The branch, master has been updated
       via  47bee67... s3: Restore correct timeouts for SMB requests
      from  528c150... s3: Remove a pointless else branch

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 47bee67c054a0d2995ee391054435cbcfdfcd6da
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Dec 22 16:06:17 2009 +0100

    s3: Restore correct timeouts for SMB requests

-----------------------------------------------------------------------

Summary of changes:
 source3/libsmb/async_smb.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index ce225f4..8b9cf09 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -382,6 +382,7 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
 {
 	struct tevent_req *result;
 	struct cli_smb_state *state;
+	struct timeval endtime;
 
 	if (iov_count > MAX_SMB_IOV) {
 		/*
@@ -422,6 +423,10 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
 	}
 	state->iov_count = iov_count + 3;
 
+	endtime = timeval_current_ofs(0, cli->timeout * 1000);
+	if (!tevent_req_set_endtime(result, ev, endtime)) {
+		tevent_req_nomem(NULL, result);
+	}
 	return result;
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list