cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: what is the best way to preform http post request every N seconds endlessly

From: Meir Yanovich <meiry242_at_gmail.com>
Date: Wed, 2 Apr 2008 13:56:05 +0200

ok thanks for the fast reply , now when i keep working with the lib im
keep and find new
things . now i have new problem ( i dont know if it needs to be new thread ..)
im working with pthreads and the http request is invoked in separate
thread the problem is
that when im using threads when it comes to execute the cUrl api
"curl_easy_perform"
im getting error ( the one kind that just to the assembly ) and the
call stuck looks like this :
NTDLL! 77fa144b()
NTDLL! 77fb6bcc()
NTDLL! 77f81d44()
KERNEL32! 7c4fb252()
_CrtIsValidHeapPointer(const void * 0x00992dc0) line 1606
_free_dbg_lk(void * 0x00992dc0, int 1) line 1011 + 9 bytes
_free_dbg(void * 0x00992dc0, int 1) line 970 + 13 bytes
free(void * 0x00992dc0) line 926 + 11 bytes
destroy_thread_sync_data(thread_sync_data * 0x00b9ff70) line 183 + 15 bytes
gethostbyname_thread(void * 0x00881140) line 321 + 9 bytes
_threadstartex(void * 0x00882cd0) line 212 + 13 bytes
KERNEL32! 7c4e987c()

some one knows what is all about ?
thanks

On Wed, Apr 2, 2008 at 1:33 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Wed, 2 Apr 2008, Meir Yanovich wrote:
>
>
> > im want to use cUrl for simple http post request every N seconds (check
> server connection) now what pops me right away is the simple while(1) +
> sleep(N) . does cURL provide more "right" ways todo this ?
> >
>
> No, libcurl doesn't provide any other way. libcurl does the HTTP for you,
> the waiting and the looping you do the "normal" way.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2008-04-02