On Sun, 06 Mar 2011 21:34:58 EST erik quanstrom <quans...@quanstro.net>  wrote:
> > Is this how 9p currently behaves or is there some settings somewhere
> > that will help prevent it? Is there a thread that have already
> > discussed
> 
> it's actually tcp that's timing out, not 9p.
> 
> this is how almost all connection-based protocols behave.
> typically there are keep-alive packets set every so often.
> and if the last time a packet was received from the other
> side was too long ago, the connection is declared defunct
> and closed.
> 
> there may be some controls determining how soon to turn
> off the wifi that may be of some help.

You don't need to mess with the wifi.  Just do

$ sysctl -w net.inet.tcp.always_keepalive=0

This will prevent the stack from sending any keepalive packets
on its own.  But this will *not* help if the higher level
protocol generates such packets.

Reply via email to