python - Flask / Werkzeug - sockets stuck in CLOSE_WAIT -


i've run situation api built on flask-restul intermittently becomes non-responsive. it's running werkzeug (which i'm aware non-production use only) , single threaded. complicate things little further wrapped inside axscript within application.

when non-responsive, significant number of sockets show in close_wait there's not being handled correctly during client initiated socket teardown.

as running single threaded appears internals of request handler may blocking indefinitely preventing other requests being accepted , causing client timeout. however, thread busy prevents socket closing.

does sounds sane assumption based on knowledge other have of framework? also, if unhanded exception thrown within request handler, result in 500 error being returned, or there other scenario here i'm missing?


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -