summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-04-02 10:50:33 +0200
committerVolker Lendecke <vl@samba.org>2012-04-02 12:31:17 +0200
commit831a97c147c6231397c51500bd44c1c3d3f83f19 (patch)
tree573d48dd2b7f4c3d11c98b6d1f566310e2cfb932 /source3/libsmb
parent13a4b7284753e7e52bad7dd19aa50327b886d845 (diff)
downloadsamba-831a97c147c6231397c51500bd44c1c3d3f83f19.tar.gz
samba-831a97c147c6231397c51500bd44c1c3d3f83f19.tar.bz2
samba-831a97c147c6231397c51500bd44c1c3d3f83f19.zip
s3: Notifies should never time out
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Apr 2 12:31:17 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 48a0636fec..1a67bcdd98 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -4945,6 +4945,7 @@ struct tevent_req *cli_notify_send(TALLOC_CTX *mem_ctx,
{
struct tevent_req *req, *subreq;
struct cli_notify_state *state;
+ unsigned old_timeout;
req = tevent_req_create(mem_ctx, &state, struct cli_notify_state);
if (req == NULL) {
@@ -4955,6 +4956,11 @@ struct tevent_req *cli_notify_send(TALLOC_CTX *mem_ctx,
SSVAL(state->setup, 4, fnum);
SSVAL(state->setup, 6, recursive);
+ /*
+ * Notifies should not time out
+ */
+ old_timeout = cli_set_timeout(cli, 0);
+
subreq = cli_trans_send(
state, /* mem ctx. */
ev, /* event ctx. */
@@ -4974,6 +4980,8 @@ struct tevent_req *cli_notify_send(TALLOC_CTX *mem_ctx,
0, /* num data. */
0); /* max returned data. */
+ cli_set_timeout(cli, old_timeout);
+
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}