Project

General

Profile

[Solved] Whole Pi Zero crashing when file download from Android device

Added by tomtomato over 6 years ago

Hi,

I have a very strange issue with lighttpd 1.4.45 (running on Raspberry Pi Zero W):

  • if I download a large file (e.g. 200MB mp4 video) then the download stalls at about 1% (but doesn't stop) and then the whole Raspberry Pi Zero becomes unresponsive (need to power off and on, as access to anything is gone, including SSH and any pages on Lighttpd)
  • no errors are logged in error.log
  • it only seems to happen from Chrome on Android devices (smartphone and tablet). Chrome on PC (Windows 10) does not seem to have an issue, the very same files can be downloaded in full without issues

Is there a way to optimise lighttpd so that it doesn't crash in such scenario, or can handle the downloading of large files better?
Or can I set lighttpd to restart if unresponsive?

Thanks,
T.


Replies (2)

RE: Whole Pi Zero crashing when file download from Android device - Added by gstrauss over 6 years ago

Is there a way to optimise lighttpd so that it doesn't crash in such scenario, or can handle the downloading of large files better?

lighttpd is not doing anything differently for those browsers, but you may be able to work around the behavior by changing lighttpd to use different kernel interfaces. Try one or both of these:

server.network-backend = "writev" 
ssl.read-ahead = "disable" 

If you're not running latest RPi kernel, you might consider upgrading the kernel to get any available networking improvements.

RE: Whole Pi Zero crashing when file download from Android device - Added by gstrauss over 6 years ago

http://forums.pimoroni.com/t/pi-zero-w-read-this-first/4117 suggests that you should make sure that your distro is up-to-date with latest wifi drivers.

    (1-2/2)