Http download issue when connection lost (#723)
Http download issue when connection lost (#723)

* Fix bug when read returns -1

When the socket down the "read" function returns -1.
Then the while(read_byte > 0) only works for signed types.

* Remove printf debug line

SuperHouse/esp-open-rtos,ourairquality/esp-open-rtos,ourairquality/esp-open-rtos,ourairquality/esp-open-rtos,bhuvanchandra/esp-open-rtos,ourairquality/esp-open-rtos,SuperHouse/esp-open-rtos,bhuvanchandra/esp-open-rtos,SuperHouse/esp-open-rtos,SuperHouse/esp-open-rtos,ourairquality/esp-open-rtos,urx/esp-open-rtos,urx/esp-open-rtos,urx/esp-open-rtos,ourairquality/esp-open-rtos,urx/esp-open-rtos,urx/esp-open-rtos,SuperHouse/esp-open-rtos,urx/esp-open-rtos,SuperHouse/esp-open-rtos,bhuvanchandra/esp-open-rtos,bhuvanchandra/esp-open-rtos