简介
- rk平台下管理节点,图片流服务优化工作笔记
mongoose server优化
- mg_http_reply 输出的响应报文 ``` HTTP/1.1 200 OK Content-Type: application/json Connection: keep-alive Server: mnc.exe Cache-control: no-cache, max-age=0, must-revalidate Access-Control-Allow-Origin: * Access-Control-Allow-Methods: * Content-Length: 278
{“code”:0,”curr_page”:1,”list”:[{“id”:1,”name”:”company”,”updatedtime”:”2023-6-30 15:45:44”,”url”:”rtsp://admin:a1234567@192.169.7.123:554”},{“id”:2,”name”:”coffee”,”updatedtime”:”2023-7-4 10:9:0”,”url”:”rtsp://admin:a1234567@192.169.7.111:554”}],”total_count”:2,”total_page”:1}
1
2
+ mg_printf 输出
HTTP/1.0 200 OK Content-Type: application/json Connection: keep-alive Server: mnc.exe Cache-control: no-cache, max-age=0, must-revalidate Access-Control-Allow-Origin: * Access-Control-Allow-Methods: *
{“code”:0,”curr_page”:1,”list”:[{“id”:1,”name”:”company”,”updatedtime”:”2023-6-30 15:45:44”,”url”:”rtsp://admin:a1234567@192.169.7.123:554”},{“id”:2,”name”:”coffee”,”updatedtime”:”2023-7-4 10:9:0”,”url”:”rtsp://admin:a1234567@192.169.7.111:554”}],”total_count”:2,”total_page”:1}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
+ mg_http_reply 输出信息
```bash
mg_connection information:
c->send.buf:HTTP/1.1 200 OK
Content-Type: application/json
Connection: keep-alive
Server: mnc.exe
Cache-control: no-cache, max-age=0, must-revalidate
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: *
Content-Length: 288
{"code":0,"curr_page":1,"list":[{"id":1,"name":"company","updatedtime":"2023-6-30 15:45:44","url":"rtsp://admin:a1234567@192.169.7.123:554"},{"id":2,"name":"coffee","updatedtime":"2023-7-4 10:9:0","url":"rtsp://admin:a1234567@192.169.7.111:554"}],"total_count":2,"total_page":1}
c->send.len:527
c->send.align:2048
c->send.size: 2048
c->is_listening: 0
c->is_client: 0
c->is_accepted: 1
c->is_resolving: 0
c->is_arplooking: 0
c->is_connecting: 0
c->is_tls: 0
c->is_tls_hs: 0
c->is_udp: 0
c->is_websocket: 0
c->is_mqtt5: 0
c->is_hexdumping: 0
c->is_draining: 0
c->is_closing: 0
c->is_full: 0
c->is_resp: 0
c->is_readable: 1
c->is_writable: 0
- mg_send 输出信息 ```bash mg_connection information: c->send.buf: HTTP/1.1 200 OK Content-Type: application/json Connection: keep-alive Server: mnc.exe Cache-control: no-cache, max-age=0, must-revalidate Access-Control-Allow-Origin: * Access-Control-Allow-Methods: * Content-Length: 278
{“code”:0,”curr_page”:1,”list”:[{“id”:1,”name”:”company”,”updatedtime”:”2023-6-30 15:45:44”,”url”:”rtsp://admin:a1234567@192.169.7.123:554”},{“id”:2,”name”:”coffee”,”updatedtime”:”2023-7-4 10:9:0”,”url”:”rtsp://admin:a1234567@192.169.7.111:554”}],”total_count”:2,”total_page”:1}
c->send.len:518 c->send.align:2048 c->send.size: 2048 c->is_listening: 0 c->is_client: 0 c->is_accepted: 1 c->is_resolving: 0 c->is_arplooking: 0 c->is_connecting: 0 c->is_tls: 0 c->is_tls_hs: 0 c->is_udp: 0 c->is_websocket: 0 c->is_mqtt5: 0 c->is_hexdumping: 0 c->is_draining: 0 c->is_closing: 0 c->is_full: 0 c->is_resp: 0 c->is_readable: 1 c->is_writable: 0 ```
H264_NALU_TYPE_SUB_SPS = 15
EMA/IVP06A/02软件资料/SDK/ivp06a2_sdk/external/mpp/mpp/common/h264_syntax.h
mongoose 错误
port: 8000 Input file: 0.0.0.0 1275e28 1 mongoose.c:403:mg_error 95 0x24 socket error
- 解释:
- 1275e28 – 未知
- 1 – 日志级别
- mongoose.c:403:mg_error – 文件,行数,函数(FILE,LINE,func)
- 95 – 连接id(Auto-incrementing unique connection ID)
- 0x24 – 连接的socket(Connected socket, or LWIP data)
- socket error – 错误消息