Open tanayk2610 opened 3 years ago
@tanayk2610 thanks for the issue. You are correct, the timeout is not applied and there should be a default. Marking this as a bug since the parameter is advertised, but it's not currently applied.
Hey, I'd like to take a crack at this 😄
@MadhavJivrajani Go for it ! 🎉
I'm using
crashd v0.3.2
and SSH connections don't seem to timeout:Here's the
ssh_config
for it:In the source code the
conn_timeout
does get set to the passed in the argument though: https://github.com/vmware-tanzu/crash-diagnostics/blob/3e9c3f5f9b6009858724cb3e0aa02e4a0ab1ddf3/starlark/ssh_config.go#L79If
conn_timeout
is not passed in, it still should default to 30 but that also doesn't seem to happening: https://github.com/vmware-tanzu/crash-diagnostics/blob/3e9c3f5f9b6009858724cb3e0aa02e4a0ab1ddf3/starlark/ssh_config.go#L57