summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-27 21:21:02 +0000
committerGerald Carter <jerry@samba.org>2003-02-27 21:21:02 +0000
commit97e7d2ffae74c9c07b38143c8fb028ee91b153bd (patch)
treef2d04d7786542956284d21dc67bee5d78c1911b8 /source3/rpc_server
parent5c82d3f00a2973b7f0881606d94ed36f0d0aa6be (diff)
downloadsamba-97e7d2ffae74c9c07b38143c8fb028ee91b153bd.tar.gz
samba-97e7d2ffae74c9c07b38143c8fb028ee91b153bd.tar.bz2
samba-97e7d2ffae74c9c07b38143c8fb028ee91b153bd.zip
additional fix for CR 601
* distinguish WinXP from Win2k * add a 1/3 of a second delay in OpenPrinter in order to trigger a LAN/WAN optimization in 2k clients. (This used to be commit 96570699d1b715f47c35aa211da6ec18f6fc4109)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index fa9b8eaeff..4006d0c08e 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1675,6 +1675,12 @@ Can't find printer handle we created for printer %s\n", name ));
&Printer->nt_devmode );
}
+ /* HACK ALERT!!! Sleep for 1/3 of a second to try trigger a LAN/WAN
+ optimization in Windows 2000 clients --jerry */
+
+ if ( RA_WIN2K == get_remote_arch() )
+ usleep( 384000 );
+
return WERR_OK;
}