Subject: CVS commit: src/sys/netsmb
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 02/21/2003 22:12:06
Module Name:	src
Committed By:	jdolecek
Date:		Fri Feb 21 20:12:06 UTC 2003

Modified Files:
	src/sys/netsmb: smb_trantcp.c smb_trantcp.h

Log Message:
rewrite nbssn_rselect() to resemple sys_select() more (as was the
intent); besides being reable now, this fixes (several!) bugs in
timeout calculation, which caused nbssn_rselect() to return
prematurely

put the timeout in separate variable declared on top, so that it's clear
where the value comes from

don't adjust timeout in smb_nbst_connect() - this made the timeout
too short if connect happened to be fast
(XXX perhaps reevaluate this later and put back in some other form)

bump NB_SNDQ/NB_RCVQ to 64k, and actually use the defines to set
snd/rcv buffer sizes

use #define for the snd/rcv timeo

some whitespace/KNF fixes


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/sys/netsmb/smb_trantcp.c
cvs rdiff -r1.2 -r1.3 src/sys/netsmb/smb_trantcp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.