V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
flicker317
V2EX  ›  问与答

iOS 上 QQ 后台 HTTP 请求对应多个响应? 这样符合 HTTP/1.1 标准吗?

  •  
  •   flicker317 · 2017-06-20 13:44:06 +08:00 · 1748 次点击
    这是一个创建于 2526 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近在调试 iOS 上的代理,大部分 http 请求都比较标准,但是 QQ 这个就比较奇怪了,大家看一下,翻了下 rfc 好像没看到相关的描述?

    QQ

    9 条回复    2017-06-20 18:02:15 +08:00
    GPU
        1
    GPU  
       2017-06-20 15:17:27 +08:00
    图片好像打不开 :ERR_SPDY_PROTOCOL_ERROR
    sc3263
        2
    sc3263  
       2017-06-20 15:30:24 +08:00
    你指的是 HTTP pipelining 么?
    sc3263
        3
    sc3263  
       2017-06-20 15:39:05 +08:00
    rfc7230 有提到这个。不过貌似还提了一句,

    Idempotent methods (Section 4.2.2 of [RFC7231]) are significant to pipelining because they can be automatically retried after a connection failure. A user agent SHOULD NOT pipeline requests after a non-idempotent method, until the final response status code for that method has been received, unless the user agent has a means to detect and recover from partial failure conditions involving the pipelined sequence.

    坑很深的样子。
    msg7086
        4
    msg7086  
       2017-06-20 16:16:32 +08:00
    没仔细看,但是看着像是 HTTP Keepalive 啊。
    flicker317
        5
    flicker317  
    OP
       2017-06-20 16:39:43 +08:00 via iPhone
    不是 pipelinling, 注意看只有 3 个 request, 返回了 5 个 response
    cst4you
        6
    cst4you  
       2017-06-20 16:53:19 +08:00
    私有协议
    xenme
        7
    xenme  
       2017-06-20 16:59:29 +08:00
    是不是跟抓包方式有关。
    之前我用 Windows netsh 抓包然后转了 pcap 之后看到类似的重复的记录。

    其实你看 seq no 都是 1808,只是重复包了而已。
    flicker317
        8
    flicker317  
    OP
       2017-06-20 17:43:16 +08:00
    @xenme seq no 都是 1808 没变只是说明发送端没在发送数据了,ack 一直在增加啊,说明收到数据了
    sc3263
        9
    sc3263  
       2017-06-20 18:02:15 +08:00
    @flicker317 不好意思没注意这个。如果是真的多回复了的话,http/1.1 标准里应该不支持这么玩。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4970 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:28 · PVG 09:28 · LAX 18:28 · JFK 21:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.