Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User ytchmp's Avatar
    Join Date
    Jul 2003
    Posts
    4
    Hi all,

    I am able to successfully perform HTTP Post operation and get the response from the IAP.
    but sometimes it kept connecting for ages, nerver time out.
    sometimes it took about 30 minutes to timed out.

    I 'd like to set RHTTPSession time out,says 1 minute, like setTimeout(ms) in java socket.
    I 've been trying to do that but i don't have any luck and can not find any docs about that.

    Appreciate your suggestion.

    Chmp.
    Last edited by ytchmp; 2004-11-03 at 04:28.

  2. #2
    Regular Contributor sysctl's Avatar
    Join Date
    Sep 2006
    Location
    Australia, NSW
    Posts
    200
    *bump*


    I know it is an old thread, but I'm interested in the same question.

    My application may frequently issue requests to the server that may be unreachable, however I don't want to complicate the implementation with additional timers and wonder if there is a way to specify a timeout value for RHTTPSession directly.

  3. #3
    Regular Contributor KevinD's Avatar
    Join Date
    Mar 2003
    Posts
    179
    Not entirely sure WRT setting timeout, but if you do end up implementing your own timer, bear this problem in mind: https://developer.uiq.com/forum/clic...messageID=3873
    (same problem on S60).
    Symsource Ltd.
    [url]www.symsource.com[/url]

  4. #4
    Regular Contributor nigel.brown's Avatar
    Join Date
    Mar 2006
    Posts
    280
    I am pretty sure there is no built in timeout. I wrote my own.
    To get round the problem of the canceling the transaction you could try closing the session. I have done this successfully and not found any problems.

  5. #5
    Regular Contributor pavanmv's Avatar
    Join Date
    Mar 2006
    Location
    Bangalore
    Posts
    148
    Hi,

    Even i used an RTimer to implement the functionality.
    RHTTPSession or RHTTPTransaction does not provide such a functionality.
    I also checked the code , so you can be assured of the same.

    Regards,
    Pavan
    Regards,
    Pavan M.V
    ________________________________

    Email: pavan.mysore@symbian.com /pavan.vishu@gmail.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved