Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 1996 13:48:07 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        stevenf@thetics.europa.com (Steven Frank)
Cc:        msmith@atrad.adelaide.edu.au, freebsd-hackers@freebsd.org
Subject:   Re: Socket library question
Message-ID:  <199605220418.NAA01760@genesis.atrad.adelaide.edu.au>
In-Reply-To: <Pine.SUN.3.91.960521194339.10487A-100000@thetics.europa.com> from "Steven Frank" at May 21, 96 07:55:18 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Steven Frank stands accused of saying:
> 
>     The sleep in question that is not getting woken up is in the sbwait() 
> function in kern/uipc_socket2.c.  It waits on the sb_cc field of the 
> receiving socket buffer.  (So it should continue when more network data 
> comes in, I assume.)  More data is coming in, but the sleep is not broken.

I'd start by tracing your sleep/wake activity to make sure that the
wakeup is actually happening.  In sbwait() make sure that SB_WAIT is not
set in sb_flags before you set it (you may already be waiting on the 
socket buf), then check that sowakeup is called when more data arrives
for the socket.  

> > You may have missed the code that's responsible for the appropriate wakeup.
> 
>     I am fairly sure the wakeup is in there, but it is most likely being 
> blocked from execution somehow.

If you're pushing datagrams in from the bottom end using PPP I would normally
expect that the wakeup would be called as required...

>     I should clarify this point, actually...  The code I used for the 
> base socket library and TCP stack is the "bsd-sources" located on 
> munnari.oz.au.  The PPP interface came from NetBSD 1.1.  So, 

Hmm, dare I ask why you didn't just grab it all from one place?  It's 
concievable (but unlikely) that the NetBSD ppp code has been bent to
work with some other NetBSD mod that is canting your port.  I don't
know, not being a NetBSD guru.

>     Thanks for the help.  Hope my explanation wasn't too muddled.  :)

Not at all.  Best of luck!

-- 
]] Mike Smith, Software Engineer        msmith@atrad.adelaide.edu.au    [[
]] Genesis Software                     genesis@atrad.adelaide.edu.au   [[
]] High-speed data acquisition and      (GSM mobile) 0411-222-496       [[
]] realtime instrument control          (ph/fax)  +61-8-267-3039        [[
]] Collector of old Unix hardware.      "Where are your PEZ?" The Tick  [[



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