s3:spoolss: Set timeout values to the one which Windows uses by default
authorAndreas Schneider <asn@samba.org>
Fri, 18 Nov 2016 14:06:22 +0000 (15:06 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 24 Aug 2017 07:30:33 +0000 (09:30 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/rpc_server/spoolss/srv_spoolss_nt.c

index 9d99e74f3951068b231d2ae31d1285b2ad800012..663c62381d5d8e64bab0abe48a9433e8de80c71e 100644 (file)
@@ -4177,9 +4177,12 @@ static WERROR construct_printer_info5(TALLOC_CTX *mem_ctx,
 
        r->attributes   = info2->attributes;
 
-       /* these two are not used by NT+ according to MSDN */
-       r->device_not_selected_timeout          = 0x0;  /* have seen 0x3a98 */
-       r->transmission_retry_timeout           = 0x0;  /* have seen 0xafc8 */
+       /*
+        * These two are not used by NT+ according to MSDN. However the values
+        * we saw on Windows Server 2012 and 2016 are always set to the 0xafc8.
+        */
+       r->device_not_selected_timeout          = 0xafc8; /* 45 sec */
+       r->transmission_retry_timeout           = 0xafc8; /* 45 sec */
 
        return WERR_OK;
 }