wireshark does not recognize an http package as http

开发网络应用时,抓包如图.客户端的实现存在两个问题:

  1. 只有三次握手的包,没有FIN包。并且header中没有connection:close,因此服务器有大量的socket打开却没有关闭。
  2. 请求的http没有被识别为http而是被wireshark识别为tcp

根据https://osqa-ask.wireshark.org/questions/6216/what-makes-a-packet-an-http-one,一个包被认为是完整的http,要么header里有content-length(当它组合起来长度达到时,被认为是一个完整的http包),要么header里有Transfer-Encoding: Chunked(当遇到FIN包时,被认为是一个完整的http包)。显然client这两个都不满足。

相关文章:

  • 2021-09-09
  • 2021-11-27
  • 2021-11-05
  • 2021-05-20
  • 2021-11-13
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-02-17
  • 2021-04-21
  • 2021-10-30
  • 2021-10-18
相关资源
相似解决方案