Chat freely about anything...

User avatar
By physiii
#47701 My program is hanging when reading from the socket after a few successful reads, this doesn't happen when using the default url (http://chainxor.org/). I'm thinking my webhosting server (http://pyfi.org/test/) is closing the connection but I'm not sure. Does any have an idea why this is happening?

Here's the code:
https://github.com/SuperHouse/esp-open- ... http_get.c

Output looks like:
DNS lookup succeeded. IP=107.180.44.133
... allocated socket
... connected
... socket send success
<html>
TEST
</html>
... done reading from socket. Last read return=0 errno=0
successes = 1 failures = 0
3... 2... 1...
Starting again!
Running DNS lookup for pyfi.org...
DNS lookup succeeded. IP=107.180.44.133
... allocated socket
... connected
... socket send success
<html>
TEST
</html>
...hangs here....

Thanks
Andy