> I am using java.net.SocketInputStream to read the Http response.
> For the first read, it takes around 2 minutes, but for the subsequent
> reads, it is very fast ( in ms). Where could be the problem ?
Impossible to say.
One possibility would be a very slow nameserver.
Arne
Viks - 11 Apr 2008 06:45 GMT
> > I am using java.net.SocketInputStream to read the Http response.
> > For the first read, it takes around 2 minutes, but for the subsequent
[quoted text clipped - 5 lines]
>
> Arne
Following can be reasons :
1. DNS resolution time
2. First Byte download time ( origin process time )
In most cases the first responses are heavy and involves connection
setup. The subsequent connections will reuse the connection hence are
faster i.e if your protocol is HTTP/1.1.
Viks