Note 4: WEB server

web server

1 HTTP protocol

1558879524862

http: hypertext transfer protocol, based on the tcp way, will be more secure and safer. Agreement that specifies how to request the server, the server returns information how. As shown in FIG red marker block:

1558880319778

Open your browser electric provider advertising works:

We open a browser to access an electronic business platform Baidu and other goods or access the server at the time the request will get to the Cookie value, you get access to the history and resolution. When the next time you open the page, the ad will be recommended as the load from local history. That Cookie tracking website by users.

2 TCP three-way handshake fourth wave

Three-way handshake is essentially a four-way handshake, C syn incoming request data request link S, S server response data ack; S C client server again request to establish a link, C response to the S server. Since the intermediate and the S reply request may merge together, resulting in 3-way handshake. Essentially to establish the connection.

Four waving time, mainly closed when there may be a communication delay or end communication. It can not be combined. Essentially closes the connection.

1558882424902

  • Long connected to the short connection

1558883944642

3 TCP-IP protocol

1558884633850

  • Process browser to access the server

1558885356582

1558884789194

4 Python knowledge

  • GIL Global Interpreter Lock

1558885462525

python sparked off in multi-process concurrency, multithreading can not introduce concurrency, GIL

  • Deep copy

1558886206028

  • Shallow copy

1558886023737

  • Privatization

1558886486362

1558957986413

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/baiboy/p/11013204.html