You Are Here:

Community: Developer Discussion Boards

#1 Old Timing out from client's side - 2003-04-01, 18:09

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
I'm writing an app that does frequent HTTP requests. On the 7650 I've encountered a problem with the app freezing after a while when trying to make a connection. This always happens when I call HttpConnection.getResponseCode(), which shifts the connection into the "connected" mode. I want the MIDlet to throw some kind of time out Exception if it spends too much time on this method. I tried using Connector.open(url,Connector.READ,true) for this, but it isn't helping.
Is there anyway to achieve this timeout, because write now the app just freezes, and there is nothing I can do about it. With a timeout exception I could at least handle the error somehow.
Any ideas?

shmoove
Reply With Quote

#2 Old Timing out from client's side - 2004-08-15, 09:18

Join Date: Feb 2004
Posts: 8
MIC331
Offline
Registered User
Hey - did you ever find a solution to this miserable WAP gateway timeout issue?
Reply With Quote

#3 Old 2004-08-15, 09:57

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
Nothing but a nasty workaround. I can set up my own time out by letting another thread see if it takes too long and then cancel manually. The main problem is that cancelling manually usually screws up the networking, and the only solution is that the user manually disconnect (by pressing the end button), and then try again.

shmoove
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia