Re: Java.net.SocketInputStream
- From: Viks <vikasshetty12@xxxxxxxxx>
- Date: Thu, 10 Apr 2008 22:45:35 -0700 (PDT)
On Apr 11, 3:48 am, Arne Vajhøj <a...@xxxxxxxxxx> wrote:
Vikram wrote:
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
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
.
- References:
- Java.net.SocketInputStream
- From: Vikram
- Re: Java.net.SocketInputStream
- From: Arne Vajhøj
- Java.net.SocketInputStream
- Prev by Date: Re: Kathy Sierra's Book for India..........
- Next by Date: Re: Issue with ZipOutputStream class in my .net application.
- Previous by thread: Re: Java.net.SocketInputStream
- Next by thread: Tracking requests without counting
- Index(es):
Relevant Pages
|
|