[Buildbot-devel] Intermittent Connection.Lost error with Windows slaves

Thomas Middeldorp thomas at ranzer.geek.nz
Thu Sep 6 23:49:21 UTC 2012

I've had a similar problem to this when using ssh to run commands on a 
remote server - if the command took too long with no output the ssh 
connection would drop.

I fixed this by setting the ServerAliveInterval option when opening the 
connection. I believe the equivalent option to this for PuTTY is in the 
"Connection" options as "Seconds between keepalives". Alternatively I 
think you should be able to set the option in your sshd_config if you 
want it to apply to all connections.

I haven't actually tested if this option keeps tunnels open as well as 
normal connections, but I think it's worth a shot.

- Thomas

On 7/09/2012 6:18 a.m., Dustin J. Mitchell wrote:
> If you're using an SSH tunnel, it sounds like the network between the
> hosts is complex at best.  I'm guessing that there's some timeout
> there - perhaps in a NAT table, or some session-based firewall -
> that's causing connections to get dropped when they're idle for too
> long -- which can happen during the slower parts of a build.
> It's just a guess..
> Dustin
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel

More information about the devel mailing list