cesanta / mongoose

Embedded Web Server
https://mongoose.ws
Other
11.01k stars 2.71k forks source link

Mongoose as https client fails to download larger files ~ 6kB #2885

Open jcorporation opened 3 weeks ago

jcorporation commented 3 weeks ago
20:36:44 DEBUG    webserver       src/web_server/proxy.c:221: Got 5468 bytes from connection "72", response code 200
20:36:44 DEBUG    webserver       src/web_server/proxy.c:226: Connection "72": Content-Length: 6022

URL is: https://jcorporation.github.io/webradiodb/db/pics/http___as-hls-ww-live_akamaized_net_pool_904_live_ww_bbc_radio_two_bbc_radio_two_isml_bbc_radio_two-audio_3d96000_norewind_m3u8.webp

Downloading this image works with Mongoose 7.14. The failure occurs with Mongoose 7.15.

To validate that is not a bug in my code I used your tutorials/http/http-client do download the image and got the same error.

You can find attached the log and the diff of the http-client. I compiled it with make CFLAGS_EXTRA="-DMG_TLS=MG_TLS_OPENSSL -lssl -lcrypto".

log.txt diff.txt

Environment

scaprile commented 3 weeks ago

Hi, Jürgen, reproduced and investigating

scaprile commented 2 weeks ago

@jcorporation Please test #2890 and let us know; works for me with that.