Coder Social home page Coder Social logo

Comments (8)

stefansundin avatar stefansundin commented on June 17, 2024 1

Interesting.. doesn't seem like the same problem though..

In any case, I just released v0.0.4.

from terraform-provider-ssh.

stefansundin avatar stefansundin commented on June 17, 2024

Hello!

Thanks for the log file, it is very useful to understand what is happening.

Perhaps we shouldn't panic when connections are having problems.. perhaps it makes more sense to just log and ignore it..

Do you want me to help you try out different builds? If you are able to compile it yourself, then I would try commenting out the panic() calls here:

// Send traffic from the SSH server -> local program
go func() {
_, err = io.Copy(sshConn, localConn)
if err != nil {
panic(err)
}
}()
// Send traffic from the local program -> SSH server
go func() {
_, err = io.Copy(localConn, sshConn)
if err != nil {
panic(err)
}
}()

If you want me to compile for you, please let me know what OS you are running.

If that makes everything more stable, then I will make a new release where I just log warnings instead of panic. Similar to this: https://gist.github.com/codref/473351a24a3ef90162cf10857fac0ff3#file-go-ssh-reverse-tunnel-go-L48-L63

Thanks for the report!

from terraform-provider-ssh.

eugenekainara avatar eugenekainara commented on June 17, 2024

Oh, thanks! I'm able to compile binary for both Linux and Mac OS to check is proposed solution is helpful and stable.

from terraform-provider-ssh.

eugenekainara avatar eugenekainara commented on June 17, 2024

Seems that proposed solution helps. I've run 5 time locally and on CI server - and no errors occurred.
I've think we should wait few days so check for stability of solution. I'll come back on next week with updates.

Thanks a lot!

from terraform-provider-ssh.

stefansundin avatar stefansundin commented on June 17, 2024

Perfect! Glad to hear it seems promising.

from terraform-provider-ssh.

stefansundin avatar stefansundin commented on June 17, 2024

I added this commit: 9dfc266

It would be great if you could pull my code and make sure it works well. Thanks!

from terraform-provider-ssh.

eugenekainara avatar eugenekainara commented on June 17, 2024

I've built today new binary and use it on my CI server few times - it also works w/o any issues as for now.

from terraform-provider-ssh.

eugenekainara avatar eugenekainara commented on June 17, 2024

It fails one time at CI server with following - terraform-provider-ssh.log

from terraform-provider-ssh.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.