i am bit unsure if the communication is closed after each request in non-persistent communication. for example assume we perform a GET to fetch 2 objects then coummincation would look like this:
client----- TCP init ------> server
client<--------ACK --------- sever
client----- get obj1 ------> server
client<-------- obj1-------- server
------------communication closed ------
client----- TCP init ------> server
client<--------ACK --------- sever
client----- get obj1 ------> server
client<--------- obj1------ server
while in persistent communication, it would look like this:
client----- TCP init ------> server
client<--------ACK --------- sever
client----- get obj1 ------> server
client<----------obj1------ server
client----- get obj2 ------> server
client<-------- obj2-------- server
------------communication closed ------
Aucun commentaire:
Enregistrer un commentaire