[SCM] Samba Shared Repository - branch v3-5-test updated

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


The branch, v3-5-test has been updated
       via  cb65611... s3: Restore correct timeouts for SMB requests
      from  04ac3a0... s3: Remove a pointless else branch

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit cb65611eda879b0de4a16c38e9246e7493106df0
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