Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2013 08:44:10 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257841 - head/sys/netsmb
Message-ID:  <201311080844.rA88iAUB097671@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Fri Nov  8 08:44:09 2013
New Revision: 257841
URL: http://svnweb.freebsd.org/changeset/base/257841

Log:
  Catch up with sb_timeo type change in r255138. This fixes
  smbfs operation.
  
  PR:		kern/182963
  Submitted by:	Tomoaki AOKI <junchoon dec.sakura.ne.jp>

Modified:
  head/sys/netsmb/smb_trantcp.c

Modified: head/sys/netsmb/smb_trantcp.c
==============================================================================
--- head/sys/netsmb/smb_trantcp.c	Fri Nov  8 05:26:30 2013	(r257840)
+++ head/sys/netsmb/smb_trantcp.c	Fri Nov  8 08:44:09 2013	(r257841)
@@ -155,8 +155,8 @@ nb_connect_in(struct nbpcb *nbp, struct 
 	SOCKBUF_LOCK(&so->so_rcv);
 	soupcall_set(so, SO_RCV, nb_upcall, nbp);
 	SOCKBUF_UNLOCK(&so->so_rcv);
-	so->so_rcv.sb_timeo = (5 * hz);
-	so->so_snd.sb_timeo = (5 * hz);
+	so->so_rcv.sb_timeo = (5 * SBT_1S);
+	so->so_snd.sb_timeo = (5 * SBT_1S);
 	error = soreserve(so, nbp->nbp_sndbuf, nbp->nbp_rcvbuf);
 	if (error)
 		goto bad;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311080844.rA88iAUB097671>