diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-17 13:44:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-17 13:44:05 +0000 |
commit | dd2e202e5c8d6220e29becb48fde333fa5258794 (patch) | |
tree | 92168e7b927f563e673d8f98f5851689b2a2cbe8 /source3/smbd/process.c | |
parent | c3effa8b599a6a0a2fe05487edc3a0d13e83d427 (diff) | |
download | samba-dd2e202e5c8d6220e29becb48fde333fa5258794.tar.gz samba-dd2e202e5c8d6220e29becb48fde333fa5258794.tar.xz samba-dd2e202e5c8d6220e29becb48fde333fa5258794.zip |
move soem variables from server.c that don't belong there.
(This used to be commit f92475aa3cb3ade576c39c02c7996c949c42082a)
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r-- | source3/smbd/process.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 30abfdb8943..acc89ae1468 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -23,11 +23,24 @@ extern int DEBUGLEVEL; +time_t smb_last_time=(time_t)0; + +/* + * Size of data we can send to client. Set + * by the client for all protocols above CORE. + * Set by us for CORE protocol. + */ +int max_send = BUFFER_SIZE; +/* + * Size of the data we can receive. Set by us. + * Can be modified by the max xmit parameter. + */ +int max_recv = BUFFER_SIZE; + extern int last_message; extern int global_oplock_break; extern pstring sesssetup_user; extern char *last_inbuf; -extern time_t smb_last_time; extern char *InBuffer; extern char *OutBuffer; extern int oplock_sock; @@ -645,6 +658,9 @@ void smbd_process(void) } #endif + + max_recv = MIN(lp_maxxmit(),BUFFER_SIZE); + /* re-initialise the timezone */ TimeInit(); |