nodejs / http-parser

http request/response parser for c
MIT License
6.32k stars 1.53k forks source link

if I put two http request buf, function http_context_parser will crash,why??? #528

Open luckybirdtom opened 3 years ago

luckybirdtom commented 3 years ago

two request once by tcp tools:

GET /favicon.ico HTTP/1.1 Host: 127.0.0.1 Connection: keep-alive Sec-Fetch-Site: none Sec-Fetch-Mode: no-cors User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 Accept-Encoding: gzip, deflate, br Accept-Language: zh-CN,zh;q=0.9,en;q=0.8

GET /favicon.ico HTTP/1.1 Host: 227.0.0.1 Connection: keep-alive Sec-Fetch-Site: none Sec-Fetch-Mode: no-cors User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 Accept-Encoding: gzip, deflate, br Accept-Language: zh-CN,zh;q=0.9,en;q=0.8