Giter Site home page Giter Site logo

Connection reset by peer about rtlamr HOT 7 CLOSED

bemasher avatar bemasher commented on July 30, 2024
Connection reset by peer

from rtlamr.

Comments (7)

bemasher avatar bemasher commented on July 30, 2024

The decision to not depend on librtlsdr was easy since the error handling in the library is pretty poor and using cgo to wrap it prevents cross-compilation, not to mention the necessity of the user to have a c-compiler setup (which rules out windows users without a painful setup). Using rtl_tcp is a win-win since we get almost the same control and remote access for free with the only expense of making the user handle two processes instead of only one.

Which side is producing that error? rtl_tcp or rtlamr? I haven't been able to do much testing on OS X but in the little testing i did do, i suspect the primary problem is rtl_tcp's interaction with the network stack since I reproduced a few of the same flavor of errors using other applications to connect to rtl_tcp. If you can provide logs that would be helpful.

from rtlamr.

dcarter avatar dcarter commented on July 30, 2024

I will do some more testing & better document the issue. I believe there were probably some situations where each produced an error. What logs would be most useful?

from rtlamr.

bemasher avatar bemasher commented on July 30, 2024

Any logs you can provide will be useful. Preferably both applications.

from rtlamr.

dcarter avatar dcarter commented on July 30, 2024

Okay, I did a clean install of rtl-sdr & rtlamr on my home-automation MacBook Pro, which is configured to never sleep, and left it running when I left the house this morning. Will check to see what log info I have later today.

Also, it appears that cgo blocking cross-compiles has been resolved? golang/go#4714

from rtlamr.

bemasher avatar bemasher commented on July 30, 2024

The fix only allows cross-compilation with cgo in use, it doesn't mean that it will succeed for all platforms. Adding an external build dependency is just not something I'm prepared to deal with or support.

from rtlamr.

dcarter avatar dcarter commented on July 30, 2024

On the MacBook that is configured to never sleep, the 2 processes have run without error now for about 3 days. I did find this error message on the MacBook where I originally had this set up. I don't know for a fact, but I think this error probably occurred when the system went to sleep or when it woke back up.

18:53:10.433463 recv.go:133: Error reading samples: read tcp 127.0.0.1:1234: connection reset by peer

Would it be reasonable to add a retry loop in this particular error situation? Perhaps with a retry count command line parameter.

from rtlamr.

bemasher avatar bemasher commented on July 30, 2024

Unfortunately, I believe this particular error is unrecoverable without rtlamr controlling instantiation of rtl_tcp which I would like to avoid.

I don't know what the OS X equivalent to this would be but using systemd to instantiate the services and to automatically restart them upon failure would work nicely. I believe OS X's closest solution is launchd, so you might look into that.

from rtlamr.

Related Issues (20)

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.