Click here to Skip to main content
       

Web Development

 
GeneralRe: Way to Configure Wordpress? PinmemberDavid Kroj1-Jul-13 23:37 
GeneralRe: Way to Configure Wordpress? PinmemberRichard A. Abbott2-Jul-13 3:23 
AnswerMessage Removed PinmemberMember 1015486914-Jul-13 4:14 
GeneralRe: Way to Configure Wordpress? PinmvpDave Kreskowiak14-Jul-13 4:26 
QuestionWhat really "python" is used for? PinmemberToywarrior30-Jun-13 2:23 
AnswerRe: What really "python" is used for? PinmvpRichard MacCutchan30-Jun-13 2:32 
Generalserver: connection vs request - help needed to understand programming theory [modified] PinmemberMember 1004803228-Jun-13 15:14 
GeneralRe: server: connection vs request - help needed to understand programming theory PinprotectorMarc Clifton28-Jun-13 15:35 
In the good ol' days of Netscape, you could actually configure the number of concurrent connections. At that time, IE was pathetic, I believe allowing for only 2 concurrent connections, while Netscape allowed (by default) for up to 6, and therefore significantly outperformed IE. Mind you, I'm talking 13 years ago or so.
 
The interesting thing was, the number of concurrent connections was also in the [some committee's] standards, and Netscape actually exceeded that. Web servers could theoretically block too many connections, and in fact, in my analysis of some websites, did so. Which is a good thing, when you think about it.
 
Now, as to your question, each connection for a resource on the web page is handled by a separate thread on the web server, up to the limit of the thread pool on the web server. Now, the database connections (at least if they're written in .NET) have a connection pool as well, which may be different from the web server's thread pool, so you have to consider both the web server's thread pool mechanism as well as potentially the thread pool of the database, if resources are stored in a database rather than the file system.
 
And finally, the mechanism that handles each request as a separate thread is not necessarily implemented in the web server's application code--by the time the web server application gets the request, it's already running in a separate thread by virtue of the underlying TCP/IP "open" process (that is to say, the OS and/or the service that runs web server applications), so the web server application doesn't need to do anything more than handle the request.
 
And yes, it's absolutely necessary because (I believe) the service that handles the TCP/IP connection request is agnostic to who is making the request, so threading is necessary to ensure the performance of all connection requests, regardless of the source. Obviously, the aforementioned "don't allow more than [x] connections per client" does pay attention to who is making the connection request. But other than blocking too many connections, I believe everything funnels through the same process.
 
Hopefully people who know more about this than me will correct any errors I've made in this discussion! Smile | :)
 
Marc

GeneralRe: server: connection vs request - help needed to understand programming theory PinmemberMember 1004803229-Jun-13 5:50 
GeneralRe: server: connection vs request - help needed to understand programming theory PinprotectorMarc Clifton29-Jun-13 6:43 
GeneralRe: server: connection vs request - help needed to understand programming theory PinmemberMember 1004803229-Jun-13 7:33 
GeneralRe: server: connection vs request - help needed to understand programming theory PinmemberMember 1004803229-Jun-13 10:44 
QuestionWCF Reporitng Service Pinmembereddieangel28-Jun-13 7:44 
QuestionForm close code Pinmemberastrixtech28-Jun-13 4:39 
SuggestionRe: Form close code PinmemberDavid Mujica28-Jun-13 4:51 
GeneralRe: Form close code Pinmemberastrixtech30-Jun-13 20:27 
QuestionRadio button default checked Pinmemberastrixtech28-Jun-13 4:33 
QuestionRe: Radio button default checked [modified] Pinmemberastrixtech30-Jun-13 20:29 
AnswerRe: Radio button default checked Pinprofessionalthanh_bkhn30-Jun-13 21:37 
QuestionRe: Radio button default checked Pinmemberastrixtech30-Jun-13 22:12 
AnswerRe: Radio button default checked Pinprofessionalthanh_bkhn30-Jun-13 22:25 
GeneralRe: Radio button default checked Pinmemberastrixtech30-Jun-13 22:40 
GeneralRe: Radio button default checked Pinprofessionalthanh_bkhn30-Jun-13 22:55 
GeneralRe: Radio button default checked Pinmemberastrixtech1-Jul-13 0:00 
QuestionRegarding Wordpress Solution PinmemberDavid Kroj26-Jun-13 23:57 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 19 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid