Why does the user agent resubmit a request after server does a TCP reset?

后端 未结 1 767
甜味超标
甜味超标 2021-01-12 04:50

We\'ve recently noticed a problem where some user agents would repeat the same POST request without the user actually physically triggering it twice.

After further s

相关标签:
1条回答
  • 2021-01-12 05:50

    This is part of the HTTP 1.1 protocol to handle connections that are closed prematurely by servers.

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.4.

    I experienced a similar situation whereby we had the same form posted a couple of times within milliseconds apart.

    A packet capture via wireshark confirmed the retransmission by the browser and logs from the server indicated the arrival of the requests.

    Also further investigation also revealed that the load balancer such as F5 have reported incidence of retransmission behavior. So it is worth checking with your load balancer vendor as well.

    0 讨论(0)
提交回复
热议问题