server socket receives 2 http requests when I send from chrome and receives one when I send from firefox

前端 未结 7 2200

I wrote a simple server using socket API in C under linux which listens at port 80 on localhost. Now when I send a request from the browser google chrome to the program it r

7条回答
  •  不知归路
    2020-11-27 18:50

    It seems that if chrome can not fetch favicon (received 404 from me) it still opens the second connection for the favicon request but does not actually request it. looks like a bug (still). 'caching' gone wrong maybe aka cache ('i already received nothing the previous time') check is done after the conn is already open?

提交回复
热议问题