I'm researching about the access time via http1.0 inner local network. I setup http server at 127.0.0.1:30000, and let curl access to the server. (http server code is implemented on http://www.java2s.com/Code/Java/Network-Protocol/AsimpletinynicelyembeddableHTTP10serverinJava.htm it is very simple program.)
curl -I -0 "http://127.0.0.1:30000/"
It is interesting to note that only first access takes long time. First access takes about 5.0msec, but second access takes 0.7msec. The following access takes only less than 1msec.
I peeked at the packets with WireShark and noticed the almost required time occupied [PSH, ACK] packets from server. Why does such a difference happen?
(I suspected persistent connection make second access fast. But, I experimented http1.0 environment and, persistent connection is defined at http1.1)