| Summary: | www/mini_httpd: Truncates file transfers to 1MB size | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Patrick Giblett <patrick> |
| Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | CC: | ehaupt, jef, leres |
| Priority: | --- | Keywords: | needs-qa |
| Version: | Latest | Flags: | vlad-fbsd:
maintainer-feedback?
(leres) vlad-fbsd: merge-quarterly? |
| Hardware: | Any | ||
| OS: | Any | ||
| Bug Depends on: | 214859 | ||
| Bug Blocks: | |||
Cannot reproduce. % http_get https://acme.com/jef/tmp/a.txt > b.txt % ls -l a.txt b.txt -rw-r--r-- 1 jef acme 21233664 Nov 26 09:31 a.txt -rw-r--r-- 1 jef www 21233664 Nov 26 09:32 b.txt % cmp a.txt b.txt % I'm also unable to reproduce on a 9.3 system running mini_httpd-1.25. I was using fetch http://localhost/filepath.......... I did not use https Testing with http instead of https I do see the truncation as described! Thanks, I'll look into this. Ok, bug found and fixed. TL;DR I was an idiot calling sendfile. The bug didn't appear when using https because that uses write, not sendfile. And the bug only appeared under FreeBSD because Linux's sendfile is completely different. New tarchive available at the mini_httpd web page: http://acme.com/software/mini_httpd/ Thanks again for the report. PR 214859 resolves this issue. Resolved by #214859. |
Any file down loaded from a site served by this httpd server is tuncated to a maximum length of 1 MB. Ihave seen this on FBSB 10.3 I386 with mini_httpd 1.21 and on FBSB 10.3 AMD64 with mini_httpd 1.25 Modifing the soucre and changing the MAX_SEND_BUFFER_SIZE constant changes the size the truncation occurs at.