git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee169d7
)
s4-irpc: Don't install endtime-timer in case timeout is INFINITE for the call
author
Kamen Mazdrashki
<kamenim@samba.org>
Wed, 15 Sep 2010 13:53:48 +0000
(16:53 +0300)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Wed, 15 Sep 2010 21:15:38 +0000
(
00:15
+0300)
source4/lib/messaging/messaging.c
patch
|
blob
|
history
diff --git
a/source4/lib/messaging/messaging.c
b/source4/lib/messaging/messaging.c
index c33db825fc6425e09bf24888d9493f749ce03e0e..d880c6336f057b33077f14252961b3239ef55690 100644
(file)
--- a/
source4/lib/messaging/messaging.c
+++ b/
source4/lib/messaging/messaging.c
@@
-1139,9
+1139,12
@@
static struct tevent_req *irpc_bh_raw_call_send(TALLOC_CTX *mem_ctx,
return tevent_req_post(req, ev);
}
- ok = tevent_req_set_endtime(req, ev, timeval_current_ofs(hs->timeout, 0));
- if (!ok) {
- return tevent_req_post(req, ev);
+ if (hs->timeout != IRPC_CALL_TIMEOUT_INF) {
+ /* set timeout-callback in case caller wants that */
+ ok = tevent_req_set_endtime(req, ev, timeval_current_ofs(hs->timeout, 0));
+ if (!ok) {
+ return tevent_req_post(req, ev);
+ }
}
return req;