ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Java Networking
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is the connection keep-alive feature of HTTP 1.1?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the connection keep-alive feature of HTTP 1.1?
Answer
# 1
HTTP 1.1's connection keep-alive feature allows the TCP
connection between a browser and a Web server to remain open
throughout multiple HTTP requests and responses. This
significantly improves the overall performance of
browser-server communication.
 
Is This Answer Correct ?    8 Yes 0 No
Guest
 
  Re: What is the connection keep-alive feature of HTTP 1.1?
Answer
# 2
Http operates on what is called a request-response 
paradigm. This means that a _client_ generates a request 
for information, and passes it to the server, which answers 
it. In the original implementation of HTTP, each request 
created a new socket connection to the server, sent the 
request, then read from that connection to get the response.

This approach had one big advantage - it was simple. Simple 
to describe, simple to understand, and simple to code. It 
also had one big disadvantage - it was slow. So, keep-alive 
connections were invented for HTTP. 

HTTP/1.0
Under HTTP 1.0, there is no official specification for how 
keepalive operates. It was, in essence, tacked on to an 
existing protocol. If the browser supports keep-alive, it 
adds an additional header to the request: 

Connection: Keep-Alive

Then, when the server receives this request and generates a 
response, it also adds a header to the response:

Connection: Keep-Alive

Following this, the connection is NOT dropped, but is 
instead kept open. When the client sends another request, 
it uses the same connection. This will continue until 
either the client or the server decides that the 
conversation is over, and one of them drops the connection.

HTTP/1.1
Under HTTP 1.1, the official keepalive method is different. 
All connections are kept alive, unless stated otherwise 
with the following header:

Connection: close

The Connection: Keep-Alive header no longer has any meaning 
because of this.

Additionally, an optional Keep-Alive: header is described, 
but is so underspecified as to be meaningless. Avoid it.
 
Is This Answer Correct ?    2 Yes 0 No
Rajani Nagandla
 
 
 

 
 
 
Other Java Networking Interview Questions
 
  Question Asked @ Answers
 
What is IP?  2
What is URL?  4
What is the difference between TCP/IP and UDP?  3
Is there any difference between TCP/IP and TCP?  2
Is it possible to send an object using Sockets, if so, how it can be? TCS1
How does server know that a client is connected to it or not?  1
What is a port?  5
What is Domain Naming Service (DNS)?  2
Write the range of multicast socket IP address?  1
What is meant by TCP, IP, UDP? Wipro7
What is InetAddress? CTS2
What is the difference between TCP and UDP ?  5
What is meant by time-slicing?  4
What is the connection keep-alive feature of HTTP 1.1?  2
What is the purpose of HTTP tunneling?  4
What is Inet address?  6
 
For more Java Networking Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com