×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

    Timing out from client's side

    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

  2. #2
    Registered User
    Join Date
    Feb 2004
    Posts
    8

    Timing out from client's side

    Hey - did you ever find a solution to this miserable WAP gateway timeout issue?

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    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

Posting Permissions

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