mochi / mochiweb

MochiWeb is an Erlang library for building lightweight HTTP servers.
Other
1.86k stars 474 forks source link

Message Queue will grow when KeepAlive #253

Open jerry-chao opened 1 year ago

jerry-chao commented 1 year ago

environment

mochiweb version: 2.22.0 otp: 23

use case

POSTMAN HTTP Request with keepAlive enabled

some messages will accumulate in message queue of the process?

I have found the receiving logic https://github.com/mochi/mochiweb/blob/7c4d3110b1889a5d58eb4dda2b1ddbb5645df3e9/src/mochiweb_http.erl#L94

https://github.com/mochi/mochiweb/blob/7c4d3110b1889a5d58eb4dda2b1ddbb5645df3e9/src/mochiweb_http.erl#L136

maybe it will handle some other messages ?

etrepum commented 1 year ago

In order to investigate this further it would be helpful if you could provide full instructions for how to reproduce what you are experiencing and how you are measuring it.