Click here to Skip to main content
16,014,591 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Taking advantage of multi-core procesors?? Pin
Michael Schubert9-May-08 11:02
Michael Schubert9-May-08 11:02 
GeneralRe: Taking advantage of multi-core procesors?? Pin
Mark Salsbery9-May-08 12:18
Mark Salsbery9-May-08 12:18 
GeneralRe: Taking advantage of multi-core procesors?? Pin
Michael Schubert9-May-08 13:48
Michael Schubert9-May-08 13:48 
GeneralRe: Taking advantage of multi-core procesors?? Pin
Mark Salsbery9-May-08 14:40
Mark Salsbery9-May-08 14:40 
GeneralRe: Taking advantage of multi-core procesors?? Pin
97C5ENVY16-May-08 8:35
97C5ENVY16-May-08 8:35 
QuestionProgress indictor while copying files using CopyFileEx Pin
itsh118-May-08 11:05
itsh118-May-08 11:05 
AnswerRe: Progress indictor while copying files using CopyFileEx Pin
David Crow8-May-08 16:19
David Crow8-May-08 16:19 
QuestionSockets and resource limit per thread Pin
bob169728-May-08 8:22
bob169728-May-08 8:22 
I'm stress testing a server that utilizes IO Completion Ports. For my test client, I'm just creating threads that perform many connect() calls to the server and leaving the socket connected so I can test my timeout mechanism on the server.

One thing of interest on the test client is a limit I hit on a per thread basis. If one thread loops with a call to connect() inside, just shy of connection number 3956, connect() fails and the system error reads "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full."

I can drop the thread and start a new one from the same application and the cycle will repeat just fine. I tried increasing the threads stack size, etc... but it doesn't change it.

This is just a test client meant to beat up on my server, but I'm at a loss to explain why connect() always fails at roughly the same spot. I'm using the loopback address to test them on the same box.

Any guidance would be greatly appreciated.
AnswerRe: Sockets and resource limit per thread Pin
Randor 8-May-08 8:51
professional Randor 8-May-08 8:51 
GeneralRe: Sockets and resource limit per thread Pin
bob169728-May-08 8:58
bob169728-May-08 8:58 
GeneralRe: Sockets and resource limit per thread Pin
bob169728-May-08 10:03
bob169728-May-08 10:03 
GeneralRe: Sockets and resource limit per thread Pin
Randor 8-May-08 10:24
professional Randor 8-May-08 10:24 
GeneralRe: Sockets and resource limit per thread Pin
bob169728-May-08 10:56
bob169728-May-08 10:56 
GeneralRe: Sockets and resource limit per thread Pin
bob169728-May-08 11:45
bob169728-May-08 11:45 
GeneralRe: Sockets and resource limit per thread Pin
Randor 8-May-08 12:25
professional Randor 8-May-08 12:25 
QuestionCL.exe problem with header Pin
Samjiman8-May-08 4:12
Samjiman8-May-08 4:12 
AnswerRe: CL.exe problem with header Pin
CPallini8-May-08 4:25
mveCPallini8-May-08 4:25 
AnswerRe: CL.exe problem with header [modified] Pin
Rajkumar R8-May-08 4:30
Rajkumar R8-May-08 4:30 
GeneralRe: CL.exe problem with header [modified] Pin
Samjiman8-May-08 4:56
Samjiman8-May-08 4:56 
GeneralRe: CL.exe problem with header Pin
Samjiman8-May-08 12:17
Samjiman8-May-08 12:17 
Questioncapturing close button Pin
Anandi.VC8-May-08 3:09
Anandi.VC8-May-08 3:09 
AnswerRe: capturing close button Pin
Iain Clarke, Warrior Programmer8-May-08 3:15
Iain Clarke, Warrior Programmer8-May-08 3:15 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 3:17
Anandi.VC8-May-08 3:17 
AnswerRe: capturing close button Pin
David Crow8-May-08 4:00
David Crow8-May-08 4:00 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 21:24
Anandi.VC8-May-08 21:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.