curl-users
Re: stop-command / C++ wrapper
Date: Fri, 15 Sep 2000 20:11:45 +0200
> _Transfer() is the name of the function in lib/highlevel.c that
has the
> "worker-loop".
>
> I could of course add a check for a bit somewhere and allow a
> curl_easy_stop() function. However, in a case where the network is
idle, it
> could take quite a while before it would actually notice that
flag.
>
> To make it good enough, I figure I should set a bit and write some
nonsense
> to the file descriptor that the select() in _Transfer() is hanging
on. And
> then, if the bit is set it just don't read anymore and then never
notices the
> nonsense byte...
May I leave the job for a curl_easy_stop() to you, Daniel??? - It
would be a great help for me not to pollute your code because I only
write a wrapper and not rewrite your stuff.
Thomas Kotzian
Received on 2000-09-15