fasthttp icon indicating copy to clipboard operation
fasthttp copied to clipboard

BUG\Error! Lost Request answer.

Open aganemnam opened this issue 2 years ago • 2 comments

Hello. Using this client in a high Traffic project. With critical response timings. All Response Types is Json. Requests is Post\Json. Its an API Server. But Sometimes in a huge traffic server looses packets. When i response to the request am logging it with conditions and duration. Request comes. fasthttp generates event. Events handled and response generated. Response sended to client. In Log appeds new line. But client Didnt get response at all. Client gets nothing. Even HTTP Errors. Try to capture data in tcpdump. There is Request -> Response , and Request with NO RESPONSE. How it can be? In log application writes that he responced. But in real world nothing sended to client.

Снимок экрана 2022-05-16 в 4 55 09 PM

aganemnam avatar May 16 '22 12:05 aganemnam

fasthttp v1.34.0 golang version 1.18 OS Linux Debian 11

aganemnam avatar May 16 '22 12:05 aganemnam

We'll need to see the code of your Server config and all the code of your request handler to see if anything could be wrong.

What kind of hardware is your process running on and what is your definition of huge traffic?

Is that packet capturing done on the server or on the client?

erikdubbelboer avatar May 16 '22 21:05 erikdubbelboer