Den tors 5 mars 2020 16:14Daniel Stenberg <dan...@haxx.se> skrev: > On Mon, 2 Mar 2020, Andreas Bengtsson via curl-library wrote: > > > I am using libcurl 7.68.0 and i am experiencing a strange issue with the > > timer function callback being called a lot during download of a file. > > Do you know if this is any difference in behavior compared to previous > versions? >
Yes, we moved from 7.58.0, and there we didn't see this behaviour. No change in our code except moving from libcurl 7.58.0 included in Android to prebuilt 7.68.0. > > > When i call curl_multi_socket_action, i always get a callback on the > timer > > function, even if the timer did not elapse. While downloading the timer > > callback is called approx. 3000 times / sec with the timeout set to > > 1000ms... > > Ugh. Sounds like a terrible bug. Can you help us and write up a test > program > that reproduces the problem? > I can try... > > > Am i missing something crucial here that makes my implementation of > libcurl > > trigger the timer callback that often? > > It should only call the timer callback if it needs to update the timer and > it > really shouldn't be possible to update it that often... > > -- > > / daniel.haxx.se | Commercial curl support up to 24x7 is available! > | Private help, bug fixes, support, ports, new features > | https://www.wolfssl.com/contact/ Regards Andreas > >
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html