why does it take 45 seconds to establish a httpconnection?
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Friday, May 10, 2002 01:09 AM

I have a midlet running on a siemens sl42 with java mobile phone. Transferring just 1000 bytes takes up 47 seconds, mainly due to the long time the mobile phone needs to build up the connection. Is it normal that setting up an internet connection with j2me on mobile phones lasts that long?

The built-in WAP connection needs just some seconds to start... So what could I do to shorten the time with j2me?

DNS maybe? Re: why does it take 45 seconds to establish a httpconnection?

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, May 10, 2002 07:12 AM

Long delays in establishing TCP connections are sometimes due to problems with DNS lookup, in the client -- is your j2me client software configured correctly to use a valid DNS server? (maybe the built-in WAP connection either has a hardwired IP address to go to, or has a different TCP configuration than the j2me JVM?)

The way to test this is to try browsing to a URL, with the j2me client, but using the dotted quad IP address, instead of the hostname, and see if that goes much faster.

Or the reverse lookup could be the problem, if the j2me client doesn't have a valid PTR record in DNS giving a hostname matching the one it claims in the forward A record, and if the http server is being paranoid about verifying the client in DNS?

About | Sitemap | Contact