-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout with local http servers (Python, Ruby, Node) #38
Comments
I've continued doing everything I can to debug this. I've updated my SO thread (linked above) as I go. I think I may have narrowed it down considerably using mitmproxy and tcpdump to carefully inspect the packets going through (though most of it is way over my head). It seems that any time the HTTP response from my local server is getting split into 2 packets, I'm getting the timeout (and status code 0) on the espduino. Any time it's a single packet, it works fine. I can use either nginx or mitmproxy with the exact same Flask app (or other local server), and without a single change to the code, it will work great and espduino gets I'm way above my head here -- does anybody know enough about reassembling ICMP / TCP packets to help look through the esp_bridge code and see if there might be an issue there? |
I think this may actually be an esp_bridge problem. See my issue there (linked in the reference above). |
Hello, When I upload software to esp8266 I get an error that is below. Please help me !!!. pi@raspberrypi /usr/share/arduino/libraries/espduino $ sudo esp8266/tools/esptool.py -p /dev/ttyUSB0 write_flash 0x00000 esp8266/release/0x00000.bin 0x40000 esp8266/release/0x40000.bin |
I've been trying to figure this out for several days with no luck: http://stackoverflow.com/questions/32283135/post-to-flask-from-espduino-timing-out/
I made a simple local server to test the reliability of the espduino. Basically the espduino simply
POST
s a number to the server, the server logs the number, and then the number gets incremented. It seems to be working correctly -- the number gets posted and logged with every request.However, every request also times out (response code
0
in the debug log and takes 5 seconds (default timeout) to complete). I don't understand why this is happening.I can use the exact same code (and just change the host) and correctly post to Pushover.net (200 response code) or to Requestb.in (200 response code) without any timeouts. I can even start up nginx on my local computer and post to the exact same app as above and get a 200 response code without any timeouts.
However, I've tried both
POST
andGET
with a local Python Flask server, with the built-in Pythonhttp.server
, with Ruby's built-inhttpd
, and with Nodejshttp-server
, and all of these time out and get a0
response code.I've tried examining everything I can think of down to tcpdump and netcat to try to see why nginx works but all these others won't. Please let me know if you have any suggestions or any idea what is causing the timeouts with everything except nginx.
The text was updated successfully, but these errors were encountered: