persisten connection

rookie1010

Senior member
Mar 7, 2004
984
0
0
Hello,

I was wondering why a client would require more than one persistent connection. Can not all requests to the server be handled by a single persistent connection.

When a server is handling multiple multiple http connections, are all the requests destined for the same port, i.e. port 80 or port 8080?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Initially HTTP was stateless, meaning that each request was issued on a separate connection. I believe HTTP 1.1 adds the ability to make multiple requests in the same connection but it's still limited to a certain number of requests so that one client can't tie up resources on the server by just leaving a connection open.

When a server is handling multiple multiple http connections, are all the requests destined for the same port, i.e. port 80 or port 8080?

Yes, the webserver only listens on the few (usually 80 and maybe 443) ports that you tell it so any incoming connection has to be on those ports.
 

rookie1010

Senior member
Mar 7, 2004
984
0
0
thanks for the reply, so since there is an upper limit to the number of requests in a single persistent connection, hence multiple persistent connections are alowed, correct?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Probably, I don't know for sure off the top of my head but I would guess that it's also configurable on the webserver.