×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    81

    I use http to download,but the speed become slower and slower.

    I use http to download xml data,but repeat to start the program serveral times,download speed obviously become slow.Everytime I download the same xml data.What problem it is possible be?

    void CClientEngine::MHFRunL(RHTTPTransaction aTransaction,
    const THTTPEvent& aEvent)
    {
    case THTTPEvent::ESucceeded:
    {
    // Indicates that transaction succeeded.
    _LIT(KTransactionSuccessful, "Transaction Successful");
    iObserver.ClientEvent(KTransactionSuccessful);

    // Transaction can be closed now. It's not needed anymore.
    aTransaction.Close();
    iRunning = EFalse;

    if(iResponseBuffer != NULL)
    {
    delete iResponseBuffer;
    iResponseBuffer = NULL;
    }
    iClientAO->StartL();//

    }
    void CClientEngine::AOHTTPGetL()/
    {

    _LIT8(K1,"http://202.105.53.34/h1/0/0.psm");
    IssueHTTPGetL(K1);

    }
    void CClientAO::StartL()
    {
    Cancel(); // Cancel any request, just to be sure
    iState = EUninitialized;

    iTimer.After(iStatus, 10000000); // Set for later
    SetActive(); // Tell scheduler a request is active

    }

    void CClientAO::RunL()
    {
    if (iState == EUninitialized)
    {
    // Do something the first time RunL() is called
    iState = EInitialized;
    iNotifier.AOHTTPGetL();//}
    else
    if (iState != EError)
    {
    // Do something
    }
    }

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,179

    Re: I use http to download,but the speed become slower and slower.

    Dunno why you are using timers in there really, so maybe you could try removing them first. And then add some logging with time information to see where you are spending the time (you could do same at your server side as well)..

    All and all, I have never seen such problem with HTTP request, and I have been using them quite a lot, and most of my code is based on the HTTP example available at the examples.

Similar Threads

  1. I use http to download,but the speed become slower and slower.
    By xmnlk in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-10-14, 15:58

Posting Permissions

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