stateless protocol and stateful protocol

后端 未结 7 977
离开以前
离开以前 2020-12-23 09:45

How to understand stateless protocol and stateful protocol? HTTP is a stateless protocol and FTP is a stateful protocol. For the web applications requiring a lot of interact

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-23 10:16

    HTTP doesn't 'inherit' from TCP, but rather uses it for a transport. HTTP uses TCP for a stateful connection, but then disconnects. Later it will connect again, if needed. So, while you browse through a web site you create many different connections. Each one of those connections is stateful, but the conversation as a whole is not, since you are dropping the connection with every conversation.

    From this link

提交回复
热议问题