html tool

显示标签为“chrome”的博文。显示所有博文
显示标签为“chrome”的博文。显示所有博文

2023年2月13日星期一

chorme/firefox 开发人员工具中的网络行为II--后续:NS_BINDING_ABORTED的原因

 问题:firefox的网络行为中出现NS_BINDING_ABORTED错误如下:

回答:
这个之前出现的status:0 (参见:https://popexizhi.blogspot.com/2023/02/chormefirefox.html )
这次又出现后,发现NS_BINDING_ABORTED错误,并且发现有奇怪的之前的请求耗时统计中有阻塞为-1的情况,如下:






NS_BINDING_ABORTED


firefox的tcp等待队列max是6,这里以因为并发太多,不再能进入等待队列了,而引起初始化错误,

queue max 6参考: https://docs.diffusiondata.com/cloud/latest/manual/html/designguide/solution/support/connection_limitations.html

阻塞的含义参考:https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/request_details/#network-monitor-request-details-timings-tab

为Blocked --

Time spent in a queue waiting for a network connection.

The browser imposes a limit on the number of simultaneous connections that can be made to a single server. In Firefox this defaults to 6, but can be changed using the network.http.max-persistent-connections-per-server preference. If all connections are in use, the browser can’t download more resources until a connection is released.

----

其中network.htt[.max-persistent-connections-per-server 定义参考:https://kb.mozillazine.org/Network.http.max-persistent-connections-per-server

----------------

对比参考chrome的queue和stalled:https://developer.chrome.com/docs/devtools/network/reference/?utm_source=devtools#timing-explanation

Queueing. The browser queues requests when:

There are higher priority requests.

There are already six TCP connections open for this origin, which is the limit. Applies to HTTP/1.0 and HTTP/1.1 only.

The browser is briefly allocating space in the disk cache

Stalled. The request could be stalled for any of the reasons described in Queueing.


而之前的status:0的原因就解释通了

XmlHttpRequest对象尚未初始化 ,参考:https://blog.csdn.net/weixin_34408717/article/details/90165738 和 https://www.publiccms.com/question/2020/03-26/509.html ;

0 Uninitialized 初始化状态。XMLHttpRequest 对象已创建或已被 abort() 方法重置。

而没有初始化就是应为连queue都无法进入,没有资源可以初始化了。


此问题从本质上分析应该是前端的这样的请求下对终端浏览器使用估计不充分引起的,可能是服务器之前的返回不够快,也可能是前端并发请求的策略过多没有做容长时间/少资源的结果。


2023年2月7日星期二

chorme/firefox 开发人员工具中的网络行为

 问题:网络行为中偶发有请求无返回,类似如下:


想看到这个post的header数据,和错误原因

解决:在请求中点击右键另存为har文件,手动使用文件编辑器打开此har文件,如下:(查找此请求就ok了,当前这个是response的code的0引起的)





2020年11月24日星期二

转:快速直接在电脑下载保存 Google Play APK 安卓文件安装包的简单方法 (网站+浏览器插件)

 https://www.hotbak.net/key/%E5%AE%89%E5%8D%93%E6%96%87%E4%BB%B6%E5%AE%89%E8%A3%85%E5%8C%85%E7%9A%84%E7%AE%80%E5%8D%95%E6%96%B9%E6%B3%95%E7%BD%91%E7%AB%99%E6%B5%8F%E8%A7%88%E5%99%A8%E6%8F%92%E4%BB%B6%E5%BC%82%E6%AC%A1%E5%85%83%E8%BD%AF%E4%BB%B6%E4%B8%8B%E8%BD%BD.html

APK Downloader 网页版 - 免注册免帐号超方便直接从 Google Play 下载 APK 文件:

网上流传的多款 Google Play APK 下载工具/网站之中,绝大部分都需要输入 Google 账户以及密码信息,毕竟将帐密交出去的话始终有点忐忑的说,而今天推荐的 APK Downloader 网站则完全不需要你填写任何资料,也不需要注册帐号,直接输入或粘贴 Android 应用/游戏所对应的 Google Play 的网址,它即可以为你生成直接的下载链接,安全方便快捷!

APK Downloader 网页版

譬如上图中我用「印象笔记」作为示例,输入它在 Google Play 的网址或者它的包名(com.evernote),点击蓝色的「 Generate Download Link」按钮开始生成 APK 文件的下载链接,等待其下方出现绿色的「 Click here to download xxxx」的按钮即表示获取成功,这时你点击绿色的按钮即可开始下载该应用的 APK 文件了。值得注意的是,APK Downloader 只能下载免费的应用,想吃霸王餐的朋友就……

2016年8月16日星期二

chrome log command

How to enable logging

To enable logging, launch Chrome with these command line flags:

--enable-logging --v=1



log默认存储在chrome 路径的下为chrome_debug.log