- Lighttpd
- Andre Bogus
- 263字
- 2021-08-25 18:06:23
Chapter 4. Downloads and Streams
A huge section of the Internet is reserved for downloadable and streamable content. Music, images, movies, programs, and things we have not thought about yet are made available (maybe for a small fee or through their advertisements) as a direct download. Music and movies (the latter often in flash video or short flv
format) can also be streamed. Sites like YouTube, using Lighttpd to serve video files, show that Lighttpd has got what it takes to do this job.
Large files present a special scenario to our Lighttpd: we will have less, but bigger requests. Some users will use download managers that create a number of HTTP range requests in parallel to optimize against bandwidth restrictions some providers operate with. We may or may not want to allow that, especially if our throughput is high. In that case each additional connection from one user will take resources away from all the others. On the other hand, we may want to allow range requests, to let our customers resume broken downloads.
If we want to serve large files, we need to set the write timeouts higher than usual—to compensate for the longer time the transfer will need. We may also want to use the writev
network backend or one of the aio
backends in the new version.
- 玩轉(zhuǎn)微信
- TArch 8.5天正建筑軟件標(biāo)準(zhǔn)教程
- 四時風(fēng)月繪:國風(fēng)水墨CG插畫繪畫技法
- AutoCAD快速自學(xué)寶典(2018中文版)
- 微信小程序開發(fā)入門與實踐
- 計算機·手機生活應(yīng)用
- 工業(yè)軟件研發(fā)、測試與質(zhì)量管理論叢
- Visio圖形設(shè)計從新手到高手(兼容版)
- Adobe創(chuàng)意大學(xué)InDesign CS5 產(chǎn)品專家認(rèn)證標(biāo)準(zhǔn)教材
- UG NX 12.0中文版從入門到精通
- PPT設(shè)計與制作實戰(zhàn)教程
- Mastercam 2019 完全自學(xué)寶典
- 中文版InDesign CC平面排版設(shè)計從入門到精通
- HBase企業(yè)應(yīng)用開發(fā)實戰(zhàn)
- AutoCAD 2018中文版完全自學(xué)手冊