Giter Club home page Giter Club logo

Comments (9)

vszakats avatar vszakats commented on June 18, 2024

The patch detects if clock_gettime(CLOCK_MONOTONIC_RAW, ...) is supported and uses it if it is. It can mean two things: The detection is wrong, or, despite the correct detection, the feature is unusable on that platform.

What happens if you build with autotools? Is the feature checking for raw monotonic clock_gettime detected? Does curl hang/timeout there?

Meanwhile with CMake you can force-disable this with the option:
-DHAVE_CLOCK_GETTIME_MONOTONIC_RAW=OFF

from curl.

AzanovAA avatar AzanovAA commented on June 18, 2024

Thank you. Disabling HAVE_CLOCK_GETTIME_MONOTONIC_RAW fixes the issue.
The program works stably on new versions of Android, and the same apk does not work on older ones.
I believe that this option is enabled when building the apk, but the same apk does not work on older versions of Android.

I think for the Android platform this option should be disabled by default. This bug is not obvious and difficult to detect. Because curl requests behave unpredictable, sometimes it works, sometimes it freezes, sometimes it immediately times out depending on the version of Android you are running on.

from curl.

vszakats avatar vszakats commented on June 18, 2024

We'd need to make a runtime check to skip this feature on older Android versions as it seems? (We already do that for Apple platforms). We'd be happy to review a patch for that, or an alternate solution to address it, e.g. auto-disabling this feature when targeting an Android version older than N.

from curl.

AzanovAA avatar AzanovAA commented on June 18, 2024

Yes, that would be useful. It took me several days to figure out this bug. I wouldn't want other people to experience this.

from curl.

bagder avatar bagder commented on June 18, 2024

Is there an agreed-upon method on how to detect Android for this so that we can mark that as having a buggy implementation?

from curl.

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.