Cneonction and nnCoection HTTP headers

前端 未结 1 1851
谎友^
谎友^ 2020-12-14 18:52

We have often some issues in terms of interoperability on the Web. One of these issues for browsers vendors is the wrongly spelled Connection HTTP header. The m

相关标签:
1条回答
  • 2020-12-14 19:16

    Are you sure it's an actual issue? The linked article suggests that these sorts of headers are "misspelled on purpose" so that a load balancer, reverse proxy or other middlebox can defeat the server's wishes that the connection be kept alive, without having to track a delta in TCP stream position over the life of the connection. Something like this may actually be necessary to bring a downed and recovered server back into active duty, by forcing kept-alive connections to other servers to migrate to the one brought online.

    If you have a protocol that's dependent on HTTP Connection: keep-alive to function (cough), you're probably doing it wrong.

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