From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Sun, 06 Mar 2011 21:34:58 EST." <58b61128ec119c9e719f198844449401@brasstown.quanstro.net> References: <58b61128ec119c9e719f198844449401@brasstown.quanstro.net> Date: Sun, 6 Mar 2011 19:31:34 -0800 From: Bakul Shah Message-Id: <20110307033134.E0E7DB835@mail.bitblocks.com> Subject: Re: [9fans] drawterm dies when my mac book sleeps by 9p design? Topicbox-Message-UUID: b70a98f8-ead6-11e9-9d60-3106f5b1d025 On Sun, 06 Mar 2011 21:34:58 EST erik quanstrom 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.