Click here to Skip to main content
15,886,812 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Using Repeater control not giving desired result Pin
Eddy Vluggen22-Mar-09 4:08
professionalEddy Vluggen22-Mar-09 4:08 
GeneralRe: Using Repeater control not giving desired result Pin
priyanshu9022-Mar-09 4:52
priyanshu9022-Mar-09 4:52 
AnswerRe: Using Repeater control not giving desired result Pin
thyrith31-Mar-09 5:28
thyrith31-Mar-09 5:28 
QuestionDoesn't Windows Service respond to Windows Hibernate Event? Pin
Jason_Shen21-Mar-09 5:31
Jason_Shen21-Mar-09 5:31 
GeneralRe: Doesn't Windows Service respond to Windows Hibernate Event? Pin
led mike23-Mar-09 5:57
led mike23-Mar-09 5:57 
Question"Invalid Assembly file" error while registering file to Global Assembly Cache ???? Pin
RA|-|UL PATEL20-Mar-09 20:53
RA|-|UL PATEL20-Mar-09 20:53 
AnswerRe: "Invalid Assembly file" error while registering file to Global Assembly Cache ???? Pin
Ravadre24-Mar-09 10:33
Ravadre24-Mar-09 10:33 
QuestionReusing TCP connection when using HTTPWebRequest Pin
michalJ20-Mar-09 15:13
michalJ20-Mar-09 15:13 
I'am developing an application that works similar to web browser.
A browser first downloads HTML, and having read this single file it downloads files that are pointed in this HTML file. This causes that many requests to the same server may be performed (alongside with requests to other web servers , but it is irrelevant here)

I assume that web browsers generally do not open new TCP connection to the web server for each file they need to download. Instead (if all resources are located on the same web server) a single connection is established, and this TCP endpoint is used for all subsequent files retrieved using HTTP protocol. (A browser might also want to multi-thread the whole-download operation, however it is not the case that there are created as many threads (and each with its own TCP connection) as resources to be downloaded).

The first question is: is the above assumption true ?

If it is true, the second question is:

How am i supposed to achieve reusing TCP connection when using HttpWebRequest / HttpWebResponse ?
in other words: how to avoid establishing a new TCP connection (for each file to be downloaded) when downloading many small files from this server. The signatures of WebRequest do not expose anything that I might assume to be usefull in this very scenario (many files to download).

And the third question is: maybe these classes are already smart enough to cache TCP connection for some time in order to optimize the whole process (internally reuse existing TCP connections) ?


thanks for help
Michal
AnswerRe: Reusing TCP connection when using HTTPWebRequest Pin
michalJ21-Mar-09 9:22
michalJ21-Mar-09 9:22 
QuestionCreating cron type job scheduler in asp.net c# (without SQL Server agent) Pin
sanah_asif20-Mar-09 3:24
sanah_asif20-Mar-09 3:24 
AnswerRe: Creating cron type job scheduler in asp.net c# (without SQL Server agent) Pin
damiaan28-Apr-10 4:38
damiaan28-Apr-10 4:38 
QuestionPassing data from a child thread Pin
vikingsimon19-Mar-09 22:23
vikingsimon19-Mar-09 22:23 
AnswerRe: Passing data from a child thread Pin
led mike20-Mar-09 4:43
led mike20-Mar-09 4:43 
GeneralRe: Passing data from a child thread Pin
Mark Churchill20-Mar-09 12:54
Mark Churchill20-Mar-09 12:54 
QuestionIs there any way to convert a legacy MFC dll to managed code in .NET? Pls help!!! Pin
Frank_Q19-Mar-09 16:11
Frank_Q19-Mar-09 16:11 
QuestionIs there a way to get URL of a page from ActtiveX? Pin
budarin19-Mar-09 10:39
budarin19-Mar-09 10:39 
Questionneeded to accept amharic unicode characters using textbox in vb.net Pin
sanchezrafael19-Mar-09 3:09
sanchezrafael19-Mar-09 3:09 
AnswerRe: needed to accept amharic unicode characters using textbox in vb.net Pin
Binyam2315-Dec-09 20:35
Binyam2315-Dec-09 20:35 
QuestionAdding an attribute to a property in a partial class Pin
Bernard Laplace18-Mar-09 23:03
Bernard Laplace18-Mar-09 23:03 
AnswerRe: Adding an attribute to a property in a partial class Pin
Thiago Berti11-Jun-10 4:40
Thiago Berti11-Jun-10 4:40 
QuestionMail forwarding on MS Exchange 2007 Pin
deepak__sharma18-Mar-09 20:11
deepak__sharma18-Mar-09 20:11 
AnswerRe: Mail forwarding on MS Exchange 2007 Pin
Abhijit Jana22-Mar-09 0:45
professionalAbhijit Jana22-Mar-09 0:45 
GeneralRe: Mail forwarding on MS Exchange 2007 Pin
deepak__sharma23-Mar-09 18:02
deepak__sharma23-Mar-09 18:02 
QuestionDo I need to release .NET 3.5 SP1 to all users? Pin
PSU Steve18-Mar-09 4:36
professionalPSU Steve18-Mar-09 4:36 
AnswerRe: Do I need to release .NET 3.5 SP1 to all users? Pin
led mike18-Mar-09 5:35
led mike18-Mar-09 5:35 

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.