This commit is contained in:
zzz
2019-05-15 11:14:40 +00:00
parent 07e226b432
commit 661a03d5cf

View File

@@ -101,6 +101,7 @@ All lines are teriminated with \r\n as required by HTTP.
.. raw:: html .. raw:: html
{% highlight %} {% highlight %}
GET /GarlicFarm/CLUSTER/VERSION/websocket HTTP/1.1 GET /GarlicFarm/CLUSTER/VERSION/websocket HTTP/1.1
Host: (ip):(port) Host: (ip):(port)
Cache-Control: no-cache Cache-Control: no-cache
@@ -135,6 +136,7 @@ All lines are teriminated with \r\n as required by HTTP.
.. raw:: html .. raw:: html
{% highlight %} {% highlight %}
GET /GarlicFarm/CLUSTER/VERSION/websocket HTTP/1.1 GET /GarlicFarm/CLUSTER/VERSION/websocket HTTP/1.1
Host: (ip):(port) Host: (ip):(port)
Cache-Control: no-cache Cache-Control: no-cache
@@ -163,6 +165,7 @@ All lines are teriminated with \r\n as required by HTTP.
.. raw:: html .. raw:: html
{% highlight %} {% highlight %}
HTTP/1.1 101 Switching Protocols HTTP/1.1 101 Switching Protocols
Connection: Upgrade Connection: Upgrade
Upgrade: websocket Upgrade: websocket
@@ -234,6 +237,7 @@ After the HTTP handshake, the establishment sequence is as follows:
.. raw:: html .. raw:: html
{% highlight %} {% highlight %}
New Server Alice Random Follower Bob New Server Alice Random Follower Bob
ClientRequest -------> ClientRequest ------->