1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

r14209: don't timeout notify requests in the cifs backend, as they are

intended to wait forever
(This used to be commit 7d8da6611850a7eab964f02ccb1adaa8c2a4358f)
This commit is contained in:
Andrew Tridgell 2006-03-11 13:06:17 +00:00 committed by Gerald (Jerry) Carter
parent 7f0c7702f6
commit 40fe45deaa

View File

@ -890,6 +890,7 @@ static NTSTATUS cvfs_notify(struct ntvfs_module_context *ntvfs,
{
struct cvfs_private *private = ntvfs->private_data;
struct smbcli_request *c_req;
int saved_timeout = private->transport->options.request_timeout;
SETUP_PID;
@ -898,8 +899,14 @@ static NTSTATUS cvfs_notify(struct ntvfs_module_context *ntvfs,
return NT_STATUS_INVALID_PARAMETER;
}
/* we must not timeout on notify requests - they wait
forever */
private->transport->options.request_timeout = 0;
c_req = smb_raw_changenotify_send(private->tree, info);
private->transport->options.request_timeout = saved_timeout;
ASYNC_RECV_TAIL(info, async_changenotify);
}