Chrome 将在 60 秒后关闭我的 ajax 帖子
Posted
技术标签:
【中文标题】Chrome 将在 60 秒后关闭我的 ajax 帖子【英文标题】:Chrome is closing my ajax post at exactly 60 seconds 【发布时间】:2015-10-14 00:31:25 【问题描述】:我正在提交一些处理时间超过 60 秒的信息,由于某种原因,Chrome 会在恰好 1 分钟后关闭该连接。我们还使用 Akamai 缓存了页面,但他们说他们的超时时间是 120 秒,所以一定是其他原因导致了问题。我们的角码或任何接近的地方都没有超时。这是 Chrome 网络内部的输出。这只发生在 Chrome、IE 和 Firefox 处理提交正常。
t=191705 [st= 0] +REQUEST_ALIVE [dt=60081]
t=191705 [st= 0] URL_REQUEST_DELEGATE [dt=0]
t=191705 [st= 0] +URL_REQUEST_START_JOB [dt=60080]
--> load_flags = 672000 (BYPASS_DATA_REDUCTION_PROXY | MAYBE_USER_GESTURE | REPORT_RAW_HEADERS | VERIFY_EV_CERT)
--> method = "POST"
--> priority = "LOW"
--> upload_id = "0"
--> url = "https://qa2.web.com/payment/submit"
t=191705 [st= 0] URL_REQUEST_DELEGATE [dt=0]
t=191706 [st= 1] HTTP_CACHE_GET_BACKEND [dt=0]
t=191706 [st= 1] URL_REQUEST_DELEGATE [dt=0]
t=191706 [st= 1] +HTTP_STREAM_REQUEST [dt=0]
t=191706 [st= 1] HTTP_STREAM_REQUEST_BOUND_TO_JOB
--> source_dependency = 4578 (HTTP_STREAM_JOB)
t=191706 [st= 1] -HTTP_STREAM_REQUEST
t=191706 [st= 1] +HTTP_TRANSACTION_SEND_REQUEST [dt=0]
t=191706 [st= 1] HTTP_TRANSACTION_HTTP2_SEND_REQUEST_HEADERS
--> :host: qa2.web.com
:method: POST
:path: /payment/submit
:scheme: https
:version: HTTP/1.1
accept: application/json, text/plain, */*
accept-encoding: gzip, deflate
accept-language: en-US,en;q=0.8
content-length: 317
content-type: application/json;charset=UTF-8
cookie: [2043 bytes were stripped]
origin: https://qa2.web.com
referer: https://qa2.web.com/payment/submit
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (Khtml, like Gecko) Chrome/44.0.2403.89 Safari/537.36
t=191706 [st= 1] -HTTP_TRANSACTION_SEND_REQUEST
t=191706 [st= 1] +HTTP_TRANSACTION_READ_HEADERS [dt=60079]
t=191706 [st= 1] HTTP2_STREAM_UPDATE_SEND_WINDOW
--> delta = -317
--> stream_id = 313
--> window_size = 65219
t=251785 [st=60080] HTTP2_STREAM_ERROR
--> description = "SPDY stream closed with status: 6"
--> status = -337
--> stream_id = 313
t=251785 [st=60080] -HTTP_TRANSACTION_READ_HEADERS
--> net_error = -337 (ERR_SPDY_PROTOCOL_ERROR)
t=251785 [st=60080] -URL_REQUEST_START_JOB
--> net_error = -337 (ERR_SPDY_PROTOCOL_ERROR)
t=251786 [st=60081] URL_REQUEST_DELEGATE [dt=0]
t=251786 [st=60081] -REQUEST_ALIVE
--> net_error = -337 (ERR_SPDY_PROTOCOL_ERROR)
【问题讨论】:
【参考方案1】:以下是 ERR_SPDY_PROTOCOL_ERROR 的快速解决方法:
在 Chrome 浏览器中打开一个新标签页 作为 URL 输入:chrome://net-internals/#events&q=type:SPDY_SESSION%20is:active 点击右上角的箭头 从下拉菜单中单击冲洗插座 再次尝试受影响的网址在您的情况下,可能有必要深入诊断您的应用程序行为以及此行为触发此问题的原因。
问候
【讨论】:
以上是关于Chrome 将在 60 秒后关闭我的 ajax 帖子的主要内容,如果未能解决你的问题,请参考以下文章
易语言怎么写倒计时关闭计算机系统? 比如,按钮1.被点击了,我要它在60秒后关闭计算机系统,该怎么