Comments (9)
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.
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.
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.
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.
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)
- [BUG]: 8.8.0: fails to build with mbedtls HOT 5
- content length not available in header function, again HOT 4
- aws-sigv4 does not work with URLs containing "=" and other special characters HOT 3
- curl_multi_socket_action crashes occasionally HOT 4
- Download progress callback can be significantly delayed HOT 2
- Document that CURLOPT_SSL_VERIFYHOST applies to SSH HOT 1
- 8.8.0: Test 1553 (IMAP cleanup before a connection was created) appears flaky on some Gentoo systems HOT 9
- configure : Failed to find size of size_t HOT 8
- Regression: In 8.8.0, HTTP3 with QuicTLS errors out with "QUIC needs at least TLS version 1.3" with CURLOPT_SSLVERSION set as documented
- manpage paragraph incorrect indentation HOT 4
- Calling `curl_global_init` after `curl_global_cleanup` failed HOT 2
- IPV6 curl sftp known_host key validation failure HOT 6
- ECH: SIGSEGV when use HTTP/3 HOT 21
- CURL 7.20.0 Form Data: When using curl_formadd to create a multipart request, the boundary delimiter is missing in the generated data. HOT 1
- WebSocket Failure Doesnt Clear socket. HOT 8
- No failure when the header file can't be written HOT 3
- Crash when using CURL_LOCK_DATA_CONNECT in Curl_conn_close at cfilters.c:165 HOT 3
- v8.8.0 - problem with `--write-out`: error 43 - A libcurl function was given a bad argument HOT 15
- Wrong time units of TCP keepalive options on DragonFlyBSD 5.8+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl.