That was a quite good briefing about the server arch.
Can we modify the code of the server program and change its functionality in any
way?

usha

RVASUDEV wrote:

> Hi,
>
> That's a big topic, but here's a whack at it :
>
> A web server supports the HTTP (and maybe CGI and Servlet) protocols.
> It has a thread constantly running that waits in a loop, listening on
> port 80 (or other if configured) (thiink ServerSocket in Java), for HTTP
> requests. For each request, it spawns a new thread to handle the request.
> The handler thread is passed an open socket connection (Socket in Java)
> to the client. It parses the HTTP request and fulfils it if possible by
> returning
> the HTML file / image / text file / other resource requested. The data is
> written to the socket connection so it ends up reaching the client, which
> may be a web browser or a custom app. After each request is serviced,
> the connection is closed.
>
> That was just the basic model. Most real servers will have plenty of
> improvements / optimizations on this.  E.g. - preforking processes/
> threads to handle requests (improves perf), using HTTP 1.1 persistent
> connections, implementing a cache, etc. etc. You can search the Web
> for some sample Web server code implementations - there are quite
> a few floating around.
>
> Regards
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> Vasudev Ram
> Infosys Technologies Limited
> Pune, India
> Email : [EMAIL PROTECTED]
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> > -----Original Message-----
> > From: Nitin Gogia [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, December 27, 1999 12:13 PM
> > To:   [EMAIL PROTECTED]
> > Subject:      Internals of Web Server....
> >
> > Can anyone tell me about the architecture (working) of any Web
> > Server....about how it works ?
> >
> > Nitin
> >
> >
> >
> >
> > __________________________________________________________________________
> > _
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to