If I Send a http request.like
GET /id=1 HTTP/1.1
Host: 127.0.0.1:8000
User-Agent: curl/7.64.1
Accept: */*
Accept-Encoding: gzip
when I send
GET /id=1 HTTP/1.1
Host: 127.0.0.1:8000
and sleep some time.
then send
User-Agent: curl/7.64.1
Accept: */*
Accept-Encoding: gzip
when client sleep.
poll_http_server go there L109
|
let req = match parsed::http::parse_http_request(&mut bs) { |
|
Some(req) => req, |
|
None => { |
|
break; |
|
} |
|
}; |
.
break will return and drop bs.
just drop
GET /id=1 HTTP/1.1
Host: 127.0.0.1:8000
If I Send a http request.like
when I send
and sleep some time.
then send
when client sleep.
poll_http_server go there L109
wasmedge_wasi_socket/examples/poll_http_server/src/main.rs
Lines 106 to 111 in 11be5c7
breakwillreturnand dropbs.just drop