lua-resty-http icon indicating copy to clipboard operation
lua-resty-http copied to clipboard

call request_uri() , send request successful and server responsed, but request_uri is blocked

Open leety1984 opened this issue 2 years ago • 0 comments

We use httpc:request_uri() in production environment, and has a large number of requests to call a micro-service. Sometimes we found in _chunked_body_reader function, co_yield(str) does not yield and suspend the execution: max_chunk_size = co_yield(str) or default_chunk_size then in this function: _read_body(res), coroutine is blocked in this call: local chunk, err repeat chunk, err = reader() -- blocked here

After a few senconds, Called micro-service close the connection, and we got a Close_wait status TCP coonction。 We add some debug logs, but have no further progress, Thanks

leety1984 avatar Apr 20 '22 04:04 leety1984