Click here to Skip to main content
15,926,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Restrict my application to one instance only Pin
Aamir Butt4-May-05 0:58
Aamir Butt4-May-05 0:58 
GeneralRe: Restrict my application to one instance only Pin
Claudio Grazioli4-May-05 1:24
Claudio Grazioli4-May-05 1:24 
GeneralRe: Restrict my application to one instance only Pin
Aamir Butt4-May-05 19:08
Aamir Butt4-May-05 19:08 
GeneralRe: Restrict my application to one instance only Pin
David Crow4-May-05 3:31
David Crow4-May-05 3:31 
GeneralRe: Restrict my application to one instance only Pin
itkid4-May-05 20:54
itkid4-May-05 20:54 
GeneralMenu Pin
Anonymous3-May-05 20:48
Anonymous3-May-05 20:48 
GeneralRe: Menu Pin
ThomasABBE4-May-05 1:45
ThomasABBE4-May-05 1:45 
GeneralMultiple http-requests are stuck Pin
meremortal3-May-05 20:44
meremortal3-May-05 20:44 
I have a problem with multiple tcp (http) connections on Windows. When my program sent many (says, 300 http-connections. The critical number of http-connections depends on speed of Internet connection) http-requests, part of them are stuck. That means, request is sent, but response is either received partly or not received at all. At that, a stuck connection isn’t dropped by web server.

This problem is present only in the Internet. There is no such problem on local machine. Based on experiment, the problem doesn’t depend on either my application sends all 300 requests to single web server or my app sends requests, says, to 6 servers by 50 requests to each server. The result is the same: some of connections are stuck for a long time.

I made a small program to investigate this problem. The program sends http-requests and receives http-response. The program creates the thread for each connection. There is opportunity to set timeout between creating connections. By default, there is no timeout and all connections are created at the same time. When I was playing with this app, I found that if I set the timeout (10-100 millisecond), http-requests worked more effectively. Sometimes, if to choose the right timeout, there are no stuck and the app uses almost all available bandwidth.

Can somebody write what’s the problem? Why are requests are stuck? What’s the cause? I could send the test app with source codes (c++) by request.

Thanks!

--
Vadim

GeneralRe: Multiple http-requests are stuck Pin
Ravi Bhavnani4-May-05 7:33
professionalRavi Bhavnani4-May-05 7:33 
GeneralRe: Multiple http-requests are stuck Pin
meremortal9-May-05 10:39
meremortal9-May-05 10:39 
GeneralRe: Multiple http-requests are stuck Pin
Ravi Bhavnani9-May-05 10:52
professionalRavi Bhavnani9-May-05 10:52 
GeneralRe: Multiple http-requests are stuck Pin
geo_m12-May-05 9:10
geo_m12-May-05 9:10 
GeneralRe: Multiple http-requests are stuck Pin
meremortal12-May-05 10:10
meremortal12-May-05 10:10 
GeneralRe: Multiple http-requests are stuck Pin
geo_m13-May-05 7:49
geo_m13-May-05 7:49 
GeneralJava Launcher Pin
vyjesh3-May-05 20:34
vyjesh3-May-05 20:34 
GeneralRe: Java Launcher Pin
S. Senthil Kumar3-May-05 20:37
S. Senthil Kumar3-May-05 20:37 
Generala question on heap..... Pin
namaskaaram3-May-05 20:14
namaskaaram3-May-05 20:14 
GeneralRe: a question on heap..... Pin
RYU^^3-May-05 20:34
RYU^^3-May-05 20:34 
GeneralRe: a question on heap..... Pin
Bob Stanneveld3-May-05 22:19
Bob Stanneveld3-May-05 22:19 
GeneralRe: a question on heap..... Pin
RYU^^6-May-05 15:10
RYU^^6-May-05 15:10 
GeneralRe: a question on heap..... Pin
Bob Stanneveld8-May-05 1:14
Bob Stanneveld8-May-05 1:14 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 5:42
Toby Opferman10-Jun-05 5:42 
GeneralRe: a question on heap..... Pin
Bob Stanneveld10-Jun-05 9:50
Bob Stanneveld10-Jun-05 9:50 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 12:35
Toby Opferman10-Jun-05 12:35 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 12:41
Toby Opferman10-Jun-05 12:41 

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.