Code Monkey home page Code Monkey logo

Comments (4)

julianmi avatar julianmi commented on May 20, 2024

I can confirm this bug. It happened to me once when I was on version 0.0.2 but in the last couple of days it occurred several times. I am currently also on the latest version. @butor are you sure that it always happens on Bitstamp?

I can almost certainly say that it is not a problem with the operating system like I thought at first. Like @butor said, the process is not being killed and still runs fine. I even tried redirecting stdout and stderr with debugging tools but there was no output.

The default cURL timeout CURLOPT_TIMEOUT is set to 0 which means that a transfer never timeouts. I added a timeout of 20 seconds for testing purposes. The commit is at https://github.com/julianmi/blackbird/commit/a5e0e2ea5ed75e6770b73a6ffb5cdb8e1f26e7d1 if anyone wants to help testing.

from blackbird.

butor avatar butor commented on May 20, 2024

Hi @julianmi sorry I didn't realize that my symptoms were the same as the ones you described to me a few weeks back.

Yes, so far I only experienced the issue after the line:

OKCoin: 272.22 / 272.23

But it may just be a coincidence. I will try out your 20-second timeout idea. Thanks.

from blackbird.

NateBrune avatar NateBrune commented on May 20, 2024

Hi @butor, I can also add another confirmation. It happened to me while downloading other market prices as well as bitstamp. I am going to try out @julianmi's branch to see if that works. Thank you guys.

side note: it has happened to me a couple of times on a couple of markets.

from blackbird.

butor avatar butor commented on May 20, 2024

curl_easy_setopt(curl, CURLOPT_TIMEOUT, 20L) seems to have fixed the issue. I don't experience this hang issue anymore. Thanks @julianmi and @NateBrune.

from blackbird.

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.