Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ASP.NET web development server (WebDev.WebServer.EXE) support HTTP/1.1 persistent connections?

HTTP/1.1 specifies that by default persistent connections should be used. I'm wondering if the ASP.NET Web Development Server supports them. So far I have seen that even though an HTTP request contained

Connection: Keep-Alive  

header the response contained

Connection: close

which forces the browser to close the connection after request rather then use pipelining. It's not a big issue, but there is one interesting drawback which is the fact that the browser does DNS lookup before each request which add to the page load time significantly.
It's best seen in Firebug (in the "net" tab).

like image 402
Piotr Owsiak Avatar asked Apr 27 '26 15:04

Piotr Owsiak


1 Answers

As per the link below Cassini doesn't support persistent connections. It will always return Connection: Close

Reusing Connections

like image 52
Raman Zhylich Avatar answered Apr 30 '26 05:04

Raman Zhylich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!