I am trying to debug an issue we are having with some embedded devices when they are downloading Firmware over-the-air and closing connections too early, failing to get all data.
I tried downloading the file with curl and wget but it gets downloaded without problems and the checksums match.
The only "hint" that I could find is when I run curl with the verbose option (-v). I created a file with dummy content, only containing the word dummy many times over.
When I run curl -v http://myserver/dummy.txt
I get this response:
dummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummClosing connection #0
ydummydummydummydummydummydummydummydummydummydummydummydummydummy
Why is there the "Closing connection #0" before the end of data?
The apache version is 2.2, we also have HAProxy in front of it, but I get the same "issue" if I curl locally on the machine.