duanmie9741 2010-06-24 12:29
浏览 161
已采纳

如何设置您传输的数据的优先级? (所以不要阻止其他http连接)(在PHP < - > Flash对中)

I have PHP script which takes some file (FLV for example) and returns it to Flash player (just opens and reads to end), and I have flash(mxml+as3) app that calls that php script in order to recive a file. Ho to make priorety of that connection so that if user goes to some other web page or dowhloads some file my pair (PHP <-> Flash) will not take over all his http trafik, but share it if it will be needed?

or is bandwath speed limeting on php script side only option?

fell free to edit, sory for my en...

  • 写回答

3条回答 默认 最新

  • duanlin1931 2010-06-25 10:11
    关注

    The problem is that you can't set a percentage of bandwidth limit because you don't know the actual bandwidth of the user, unless you make a download test and estimate the bandwidth of the user !

    You might also try this : I had a similar issue with Uploading/Downloading from/to my flex app which was causing every RPC or any kind of external loading to be very slow.. the reason : there were too many concurrent request (one permanent, the up/download, which was taking a browser "slot" request, and other variables : the rpc and external loadings).

    Therefore, you might consider downloading/uploading from/to a different url :

    Your app : www.domain.com/myapp

    Your upload url : upload.domain.com

    That tricked the browser into thinking it was two different websites and therefore unclogged the pipe to allow other remote connections to the website when navigating in my app.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输