diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-29 06:01:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:00 -0500 |
commit | 072dfad0afc9940c4c51cbecad9b3acf0cc38844 (patch) | |
tree | 371bf1f77b46e34d5311e30db9ddd0053affc327 /source4/libcli/raw/clitransport.c | |
parent | d1a732dd2d0828cb3f1f67e86acffcb053ca6851 (diff) | |
download | samba-072dfad0afc9940c4c51cbecad9b3acf0cc38844.tar.gz samba-072dfad0afc9940c4c51cbecad9b3acf0cc38844.tar.bz2 samba-072dfad0afc9940c4c51cbecad9b3acf0cc38844.zip |
r3354: honor "max xmit" and "max mux" from smb.conf in our client code. This
is important as it allows the test suite to exercise the multiple
reply logic in smbd for trans2 search replies.
(This used to be commit 865159016ab1e806465a55697444228fb3fa286e)
Diffstat (limited to 'source4/libcli/raw/clitransport.c')
-rw-r--r-- | source4/libcli/raw/clitransport.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c index 3335f557e5..c0ec5d70fe 100644 --- a/source4/libcli/raw/clitransport.c +++ b/source4/libcli/raw/clitransport.c @@ -76,7 +76,10 @@ struct smbcli_transport *smbcli_transport_init(struct smbcli_socket *sock) transport->socket = talloc_reference(transport, sock); transport->negotiate.protocol = PROTOCOL_NT1; transport->options.use_spnego = lp_use_spnego(); - transport->negotiate.max_xmit = ~0; + transport->options.max_xmit = lp_max_xmit(); + transport->options.max_mux = lp_maxmux(); + + transport->negotiate.max_xmit = transport->options.max_xmit; smbcli_init_signing(transport); |