> The infinite loop problem showed again (after ~20hours running program in 
> debug).

I assume that you made a "Debug" build and ran your program under MSVC debugger 
for 20hrs, right?
Do you see the same problem for the "release" build (or for "debug" build) when 
it is not running under MSVC debugger?

I have seen issues with MSVC debugger in the past, so the issue you observed 
may be a debugger issue (when it has been running for too long) rather than 
curl's one.

I would put some debugging "printf" messages into your app to detect the 
infinite loop but run it as the production "release" build not under MSVC 
debugger to confirm that it is not a debugger issue.

And if you still see the "infinite loop" issue without running under debugger, 
then, as some folks already mentioned , could you please provide some sample or 
"skeleton" code like what you are using in your app to illustrate where the 
"infinite loop" happens? 

Thanks,
Dmitry Karpov

-----Original Message-----
From: curl-library <curl-library-boun...@lists.haxx.se> On Behalf Of Lilia 
Boneva via curl-library
Sent: Monday, February 7, 2022 5:17 AM
To: curl-library@lists.haxx.se
Cc: Lilia Boneva <p...@abv.bg>
Subject: infinite "easy_transfer function" wait loop

Hello again,


The infinite loop problem showed again (after ~20hours running program in 
debug). 



The html used is 1.1 default version (not sure how to use html/2 libraries). 
The environment is single threaded static lib Win32 Visual 
C++ 2019.



I tried to debug, but unfortunately am new to curl and do not know what 
to look. So I made a video on how execution goes through "easy_transfer 
function" and subfuncs 
(https://drive.google.com/file/d/1kdMSBS9fZPBW4WoMJ4qgHIeB01h46d4V/view?usp=sharing).
 The google drive file is ~1GB - tried to make it high res (if too long I will 
convert it to smaller res and send again).



Any idea how to catch the problem when debuging next time is welcome - 
what data to look, what structure to write down or what to log.




If you someone can give me link to how to use html/2 library to try if problem 
exists I will be grateful.
Also is it possible to use "Easy" interface instead of "multy" interface? (Now 
call goes through multi_wait)
Also during debug I saw USE_WINSOCK is used. Is it possible not to use WinSock ?



Thanks,

Best Regards

-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to