开发者

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

开发者 https://www.devze.com 2023-03-29 08:22 出处:网络
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.

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消