From dd2e202e5c8d6220e29becb48fde333fa5258794 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Aug 1998 13:44:05 +0000 Subject: move soem variables from server.c that don't belong there. (This used to be commit f92475aa3cb3ade576c39c02c7996c949c42082a) --- source3/smbd/process.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'source3/smbd/process.c') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 30abfdb894..acc89ae146 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(); -- cgit