当前位置: 动力学知识库 > 问答 > 编程问答 >

httprequest - how to check connection is closed by server or server supports keep alive?

问题描述:

how can I check that server supports keep-alive ?

I want to check this by analyzing http response.

I am using mongoose c++ server. and I am setting header keep-alive.

But I doubt it is closing the connection. As it is always taking time required to connect to host from client. I doubt connection is getting close.

How I can check that connection is getting closed or not ?

网友答案:

The "close" takes place on the TCP level - so IMHO the most relaibale place to check for it is the network level - you can check that by using Fiddler or Wireshark...

分享给朋友:
您可能感兴趣的文章:
随机阅读: