Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2003

    Consecutive http requests on 3650 throw exception

    I have a midlet that makes two consecutive http requests, one in a first thread, and the second by a method call made by the first thread that spawns another thread.

    The second request gave me an exception when I tested it on the 3650 (ran perfectly on the emulator), but when I inserted a 500 ms delay before starting the second thread, I did not get the exception.

    Can anybody shed some light on this ?


  2. #2
    Super Contributor
    Join Date
    Mar 2003
    I don't think you can make more than one concurrent connection. I guess the second connection (without adding the delay) wasn't waiting for the first connection to be finished.


  3. #3
    Registered User
    Join Date
    Oct 2003
    How'd you add the delay? (e.g. sleep(), wait(), loop?)

    I tried doing the same, but had no improvement. Then again, I'm having a polling connection and a manual connection, and I'm not sure I can 100% avoid them clashing with each other.

Posting Permissions

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