diff options
-rw-r--r-- | source3/param/loadparm.c | 4 | ||||
-rw-r--r-- | source3/smbd/negprot.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 500119575a..5d1ef9b91f 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1289,7 +1289,9 @@ static void init_globals(void) Globals.bLoadPrinters = True; Globals.mangled_stack = 50; - Globals.max_xmit = 65535; + /* Was 65535 (0xFFFF). 0x4101 matches W2K and causes major speed improvements... */ + /* Discovered by 2 days of pain by Don McCall @ HP :-). */ + Globals.max_xmit = 0x4104; Globals.max_mux = 50; /* This is *needed* for profile support. */ Globals.lpqcachetime = 10; Globals.bDisableSpoolss = False; diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 16427b00d7..06a55cb33e 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -275,7 +275,7 @@ static int reply_nt1(char *inbuf, char *outbuf) SSVAL(outbuf,smb_vwv1+1,lp_maxmux()); /* maxmpx */ SSVAL(outbuf,smb_vwv2+1,1); /* num vcs */ - SIVAL(outbuf,smb_vwv3+1,0xffff); /* max buffer. LOTS! */ + SIVAL(outbuf,smb_vwv3+1,max_recv); /* max buffer. LOTS! */ SIVAL(outbuf,smb_vwv5+1,0x10000); /* raw size. full 64k */ SIVAL(outbuf,smb_vwv7+1,sys_getpid()); /* session key */ SIVAL(outbuf,smb_vwv9+1,capabilities); /* capabilities */ |