Git Product home page Git Product logo

Comments (7)

nyz110 avatar nyz110 commented on August 17, 2024

我是列表播放视频,所以getProxyUrl 调用会比较频繁

from ksyhttpcache_ios.

nyz110 avatar nyz110 commented on August 17, 2024

依赖库的版本

- CocoaAsyncSocket (7.6.2)
  - CocoaLumberjack (3.4.0):
    - CocoaLumberjack/Default (= 3.4.0)
    - CocoaLumberjack/Extensions (= 3.4.0)
  - CocoaLumberjack/Default (3.4.0)
  - CocoaLumberjack/Extensions (3.4.0):
    - CocoaLumberjack/Default

from ksyhttpcache_ios.

nyz110 avatar nyz110 commented on August 17, 2024

[22:58:53] -[MMBPlayerView reloadPlayerInfo:] [第135行] get play url begin:2018-02-06 14:59:47 +0000

[21:48:33] +[MMBUrlProtocol canInitWithRequest:] [第57行] =========protocol canInitWithRequest ==== http://127.0.0.1:8123/CheckAlive

[21:48:33] +[MMBUrlProtocol canInitWithRequest:] [第57行] =========protocol canInitWithRequest ==== http://127.0.0.1:8123/CheckAlive
2018-02-06 22:59:48:002 myAPP[1435:242132] HTTPServer: Started HTTP server on port 8123
2018-02-06 22:59:48.002674+0800 myAPP[1435:242132] Started HTTP Server on port 8123

[22:58:53] -[MMBPlayerView reloadPlayerInfo:] [第137行] get play url end:2018-02-06 14:59:48 +0000

from ksyhttpcache_ios.

mayudong1 avatar mayudong1 commented on August 17, 2024

看日志是在本地代理服务异常后,调用getProxyUrl时会耗时大概1秒多的时间
这这个调用中是检测是代理服务状态,如果异常后会重启服务,目前要保证这个函数返回后代理服务必须是正常状态,所以只能是同步方式处理,就会导致了耗时阻塞主线程
可以尝试一下在业务层通过异步的方式来调用getProxyUrl,当返回后在交给播放器处理,保证界面不卡,播放器开播可能会慢一点

from ksyhttpcache_ios.

nyz110 avatar nyz110 commented on August 17, 2024

会经常出现异常,有时候重启服务要2s,还有,异步获取在复用的时候会有问题。目前app 嵌入了移动加速SDK,开启加速后,会比较慢,在做相关沟通

from ksyhttpcache_ios.

mayudong1 avatar mayudong1 commented on August 17, 2024

可以排查一下是什么操作会导致本地代理服务异常吗,因为我自测的时候各种折腾,只有在长时间后台后会出问题,正常前台操作没出过异常

from ksyhttpcache_ios.

nyz110 avatar nyz110 commented on August 17, 2024

开启加速后用flex 查看网络请求情况如下图
img_0568
img_0567
img_0566
img_0565

from ksyhttpcache_ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.