cURL / Mailing Lists / curl-library / Single Mail

curl-library

Windows RPC server busy. Multithreading issues.

From: Jim N <jim_at_bluedojo.com>
Date: Sun, 16 Jan 2005 21:13:46 -0800 (PST)

Hello everyone!

I hope everyone is having a fine day, and best of care to the tsunami
victims.

On a lesser but important note, I am working on a Windows C program that
uses the curl library. I am currently using the easy interface, and it
seems to do a very good job.

My problem is that I am also using multithreading and when I have a lot of
threads open (40-100 or so) it causes the following message to show in the
debugger: "First-chance exception at 0x77e6d756 in Program.exe:
0x000006BB: The RPC server is too busy to complete this operation."

I am using Microsoft Visual C++ as my IDE and programming my project in
Win32 using just "C". When I comment out the line
"curl_easy_perform(curl)" the error disappears so I know it has something
to do with curl looking up the url. This error occurs maybe 20% of the
time a thread executes. Sometimes it works, sometimes it doesn't.

I've tried setting CURLOPT_NOSIGNAL to true for all threads but that
didn't work. I also did a CURLOPT_VERBOSE to see all the debug
information but it didn't help any. I am not sure what is going on but it
has something to do with all the threads open.

I am using the latest version of curl, 7.12.3, running WinXP, and using
Microsoft Visual Studio .NET 2003 (just Win32).

If anyone knows a solution or anything about this I would appreciate it.
Received on 2005-01-17