Althttpd

Download failed on LAN
Login

Download failed on LAN

(1) By anonymous on 2022-03-17 14:22:49 [link] [source]

Hi,

Using althttpd 2.0 [9c9bffe773fe] [2022-03-04T13:12:57.908] on OpenBSD, althttpd will abort the download of a large file after a few seconds. The althttpd server and the computer that initiated the connection are on the same LAN.

The download lasts for 10 seconds and then is terminated. The file size in my case is 845MB, but I imagine any file that can't be fully downloaded in ten seconds will be terminated.

This happened on Firefox and via wget on a different machine.

althttpd log:

2022-03-17 07:14:06,10.7.6.54,"http://10.7.0.135/WhatHappensWhenMathsGoesWrong-withMattParker.mkv","http://10.7.0.135/myindex",914,477,118489352,100000,650000,0,0,10006265,1,"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0","",66,130

I see reference to a 10 second header, but I don't see the error code listed in the althttpd log above.

Request headers from firefox:

GET /WhatHappensWhenMathsGoesWrong-withMattParker.mkv HTTP/1.1
Host: 10.7.0.135
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Referer: http://10.7.0.135/myindex
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache

Response headers from firefox:

HTTP/1.1 200 OK
Connection: keep-alive
Date: Thu, 17 Mar 2022 14:00:30 GMT
Last-Modified: Fri, 08 Mar 2019 06:28:08 GMT
Cache-Control: max-age=120
ETag: "m5c820b78s34ddc5b3"
Content-type: application/octet-stream; charset=utf-8
Content-length: 886949299

(2) By sean (naes_guy) on 2022-03-17 15:28:48 in reply to 1 [source]

Darn...althttpd 2.0 [9c9bffe773fe] [2022-03-04T13:12:57.908] on a Raspberry Pi didn't abort the timeout after 10 seconds.

However, on subsequent download attempts from the raspberry pi, the download is never started. I can only get the download to start if I disable cache in the Firefox network tools.

(3) By sodface on 2022-03-18 02:05:02 in reply to 2 [link] [source]

Maybe not relevant, but I think Firefox is starting to treat non-https sites as second class citizens. I ran into an issue recently with someone trying to use my website /repo via browser (which I don't usually do so never saw the issue):

LMS Forum Post

Oh wow! It never occurred to me that it could be the browser... Yes, I use Firefox (98) but got no warnings at all, it just created 0-byte files. I copied the links from this page and pasted them into Edge and it worked fine!

Again, probably not relevant, especially since you said wget did the same thing, but I figured I'd mention it since I just ran into it recently.

(4) By sodface on 2022-03-20 06:12:06 in reply to 1 [link] [source]

Have you tried adding -debug 1 when starting althttpd? I'm also curious if when your download stops after 10s if althttpd is still running or did it exit?