Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP is connection-less or connection-base? my materials tell me difference answer:(

 
ZhiYuan Lin
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP is
AConnection Less
BConnection Base
A : Still regarded as connection-less as it�s acceptable for the client or server to drop the connection at any time (e.g. Apache uses a 15 sec timeout on keep-alive sockets), client will re-establish the connection.
B : HTTP uses TCP/IP as the underlying transport and network protocols.
but which should i choose ?
 
S. Ganapathy
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP is stateless, but connection oriented protocol.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11865
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ZhiYuan
HTTP is connectionless.
Each HTTP request opens a new connection for the request / response then closes the connection.
That is why JAR files (even with 0% compression) will make your downloads of applets faster - there is only one connection being opened to get the one file. Without the jar file you would be opening many connections to get the many class files.
Regards, Andrew
 
ZhiYuan Lin
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic