lpereira / lwan

Experimental, scalable, high performance HTTP server
https://lwan.ws
GNU General Public License v2.0
5.92k stars 549 forks source link

Handling 0 bytes files #281

Closed murataka closed 4 years ago

murataka commented 4 years ago

Hello , i just installed lwan on freebsd with zfs file system.

after starting lwan , update files to be served,

When i put a zero bytes index.html in wwwroot, the response does not finish.

root@rescue:~ # cd tmp root@rescue:~/tmp # cd wwwroot/ root@rescue:~/tmp/wwwroot # touch index.html

try to browse the server...

murataka commented 4 years ago

the case also happens with other files than index.html.

lpereira commented 4 years ago

Indeed that's a problem in FreeBSD, thanks for reporting. The filesystem doesn't seem to matter (my FreeBSD machine doesn't have a ZFS filesystem).

lpereira commented 4 years ago

Should be fixed now. Please confirm (and feel free to reopen if it isn't).

murataka commented 4 years ago

Confirmed. Problem solved 👍