cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Windows RPC server busy. Multithreading issues.

From: Michael Mastroianni <MMastroianni_at_choicestream.com>
Date: Mon, 17 Jan 2005 07:14:25 -0500

I had a similar issue. I was always blowing up in gethostbyname.

I switched to using Ares for dns lookups, and the problem went away.


-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se on behalf of Jim N
Sent: Mon 1/17/2005 12:13 AM
To: curl-library_at_cool.haxx.se
Subject: Windows RPC server busy. Multithreading issues.
 
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