4
Vote

server has a minimum reponse time of 1 second.

description

i just ran some tests and it seems like the server's response time for any request no matter how simple is at least 1 second. for example a simple json request that take ~80ms under iis takes 1 second in cassini.
 
Edit (Added links):
http://stackoverflow.com/questions/3476404/long-delay-1s-between-browser-attempting-to-connect-and-socket-accept
http://stackoverflow.com/questions/3908692/socket-accept-causes-a-one-second-tcp-ip-connect

comments

keivanbeigi wrote Oct 11, 2010 at 6:35 AM

I looked a bit at the code and it looks like it might be because of the Synchronous Socket.Accept() method. I could try and convert it to an async method but I would probably break everything else ;)

keivanbeigi wrote Oct 11, 2010 at 7:10 PM

Question I posted on stackoverflow.com regarding this issue.
http://stackoverflow.com/questions/3908692/socket-accept-causes-a-one-second-tcp-ip-connect

Sky wrote Oct 12, 2010 at 9:54 PM

keiv - thanks for this too - looks like we might be able improve the performance with this information.

Sky wrote Mar 12, 2011 at 12:11 AM

wow - how time flies. i remember checking on this and finding that the way particular browsers issue requests plays a part in this. changing to async sounds like a viable approach but would certainly require less than trivial work and testing. it is on the radar.