mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:smb2_negprot: allow really large io sizes up to allmost 16MB
The default is still 8MB (as on Windows 2012 *). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
703ef59d00
commit
760f23a8e2
@ -254,8 +254,13 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
|
||||
capabilities |= SMB2_CAP_LARGE_MTU;
|
||||
xconn->smb2.credits.multicredit = true;
|
||||
|
||||
/* Windows 2012R2 allows up to 8 MB */
|
||||
max_limit = 0x800000; /* 8MB */
|
||||
/*
|
||||
* We allow up to allmost 16MB.
|
||||
*
|
||||
* The maximum PDU size is 0xFFFFFF (16776960)
|
||||
* and we need some space for the header.
|
||||
*/
|
||||
max_limit = 0xFFFF00;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user