Loading operational +10 −10 Original line number Diff line number Diff line Loading @@ -527,16 +527,6 @@ cached blocks. - give some log in console when file content changes. - ** 2024-04-06 rd client: when server side doesn't support GET /rd/ api. give a more clear msg to client side. it's not client side's fault. #+begin_quote root@pve:/wh01/share/tv-series/Kingdom# rd http://1.116.206.228:8082/kingdom.tar 2024-04-06T07:14:31 E GET /rd/ api failed: "No redis connection, GET /rd/ disabled" 2024-04-06T07:14:31 E 1 urls failed/skipped. #+end_quote ** 2024-03-12 rd-api, if file is already transferred block by block, I can support live compress easily. If the client request compress as param such as ?compress=zstd. default is no compress. Loading Loading @@ -582,6 +572,16 @@ policy in ovs can do it. see stretch01 daylog. * done :entry: ** 2024-04-06 rd client: when server side doesn't support GET /rd/ api. give a more clear msg to client side. it's not client side's fault. #+begin_quote root@pve:/wh01/share/tv-series/Kingdom# rd http://1.116.206.228:8082/kingdom.tar 2024-04-06T07:14:31 E GET /rd/ api failed: "No redis connection, GET /rd/ disabled" 2024-04-06T07:14:31 E 1 urls failed/skipped. #+end_quote ** 2018-05-05 utf-8 character not working well in path. :bug: curl http://localhost:8082/rd/%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%90%8D.rar {"ok":true,"path":"中"} Loading package.yaml +1 −1 Original line number Diff line number Diff line name: reliable-download version: 1.2.2.0 version: 1.2.3.0 synopsis: provide reliable download service via HTTP description: reliable-download web application and cli tool homepage: "https://gitlab.emacsos.com/sylecn/reliable-download" Loading rd-api/RD/Server/App.hs +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ processNewFileAsyncMaybe rc fbp = do getRdHandler :: RDRuntimeConfig -> ExceptT T.Text ActionM () getRdHandler rc = do unless (rcHasRedis rc) $ throwE "No redis connection, GET /rd/ disabled" throwE "No redis on server side, rd client support is disabled" req <- lift request let reqFilePath = T.intercalate "/" $ drop 1 $ pathInfo req let filepath = webRoot (rcConfig rc) </> T.unpack reqFilePath Loading Loading
operational +10 −10 Original line number Diff line number Diff line Loading @@ -527,16 +527,6 @@ cached blocks. - give some log in console when file content changes. - ** 2024-04-06 rd client: when server side doesn't support GET /rd/ api. give a more clear msg to client side. it's not client side's fault. #+begin_quote root@pve:/wh01/share/tv-series/Kingdom# rd http://1.116.206.228:8082/kingdom.tar 2024-04-06T07:14:31 E GET /rd/ api failed: "No redis connection, GET /rd/ disabled" 2024-04-06T07:14:31 E 1 urls failed/skipped. #+end_quote ** 2024-03-12 rd-api, if file is already transferred block by block, I can support live compress easily. If the client request compress as param such as ?compress=zstd. default is no compress. Loading Loading @@ -582,6 +572,16 @@ policy in ovs can do it. see stretch01 daylog. * done :entry: ** 2024-04-06 rd client: when server side doesn't support GET /rd/ api. give a more clear msg to client side. it's not client side's fault. #+begin_quote root@pve:/wh01/share/tv-series/Kingdom# rd http://1.116.206.228:8082/kingdom.tar 2024-04-06T07:14:31 E GET /rd/ api failed: "No redis connection, GET /rd/ disabled" 2024-04-06T07:14:31 E 1 urls failed/skipped. #+end_quote ** 2018-05-05 utf-8 character not working well in path. :bug: curl http://localhost:8082/rd/%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%90%8D.rar {"ok":true,"path":"中"} Loading
package.yaml +1 −1 Original line number Diff line number Diff line name: reliable-download version: 1.2.2.0 version: 1.2.3.0 synopsis: provide reliable download service via HTTP description: reliable-download web application and cli tool homepage: "https://gitlab.emacsos.com/sylecn/reliable-download" Loading
rd-api/RD/Server/App.hs +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ processNewFileAsyncMaybe rc fbp = do getRdHandler :: RDRuntimeConfig -> ExceptT T.Text ActionM () getRdHandler rc = do unless (rcHasRedis rc) $ throwE "No redis connection, GET /rd/ disabled" throwE "No redis on server side, rd client support is disabled" req <- lift request let reqFilePath = T.intercalate "/" $ drop 1 $ pathInfo req let filepath = webRoot (rcConfig rc) </> T.unpack reqFilePath Loading