User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
py-flack [2020-05-22 07:50]
ziggi
py-flack [2020-05-22 07:55] (current)
ziggi
Line 1: Line 1:
  
-==== Python flack sample====+==== Python flack+bjoern ​sample====
  
 <code python f01.py> <code python f01.py>
Line 52: Line 52:
  
 ====Out==== ====Out====
 +<​file>​
 +# python3.8 f01.py
 +# curl -v http://​127.0.0.1:​5000/ ​
 +*   ​Trying 127.0.0.1...
 +* TCP_NODELAY set
 +* Connected to 127.0.0.1 (127.0.0.1) port 5000 (#0)
 +> GET / HTTP/1.1
 +> Host: 127.0.0.1:​5000
 +> User-Agent: curl/7.63.0
 +> Accept: */*
 +
 +< HTTP/1.1 200 OK
 +< Content-Type:​ application/​json
 +< Content-Length:​ 31
 +< Connection: Keep-Alive
 +
 +{"​data":"​hello","​error":​false}
 +</​file>​
  
 ===1500 concurrent=== ===1500 concurrent===
 +
 +
 +<​file>​
 +  PID USERNAME ​   PRI NICE   ​SIZE ​   RES STATE    C   ​TIME ​   WCPU COMMAND
 + 7115 ziggi       ​103 ​   0    42M    32M CPU3     ​3 ​  ​1:​20 ​ 99.87% python3.8
 +
 +</​file>​
  
 <​file>​ <​file>​