On my raspberry pi, I run a python flask http request that takes a few seconds to complete. When I ask the request from my computer to the raspberry pi while connected to my phone hotspot, the request is taking a few seconds and completes normally.
However, when I execute the request from my computer to the raspberry pi while connect to the raspberry pi directly, in Access Point mode, the response is either very slow to arrive or the request never completes. I know that the request was well received and treated on the raspberry pi because of print statements, it is only the response that is not going through properly.
I suspect it is more a networking issue on the raspberry pi access point mode rather than an issue with the flask server. Note that all the other endpoints of the flask server (that do not take time to complete) are working as intended on both situations.
Do you have an idea of why the longer requests do not complete ?
You must log in to answer this question.
Explore related questions
See similar questions with these tags.
iperfto test network speeds and maybe rule out flask being the cause