Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2004

    HTTP Request Pipelining

    Hi All,
    I wish to implement http request pipelining for series 60 2nd FP2
    using RHTTPSession and RHTTPTransaction classes.

    I tried a couple of these methods.
    1. Maintaining an array of RHTTPTransactions, subject to a max limit (say 4)
    and submitting all 4 transactions simultaneously and then waiting for
    the responses. There was a single implementation of MHFRunL and MHFRunError.
    The problem i faced with this approach is that the responses recieved
    are interleaved( not in the order in which the requests were sent).

    2. Creating a seperate transaction variable for every request generated and
    creating seperate handlers (MHFRunL and MHFRunError). Also in this case,
    the responses are interleaved.

    Also I tried to use a single transaction variable for all my POST requests.(directed to a single URL)
    .In this scenario, on completion of every request, i reset the headers and the request BODY. Then i
    "Submit" the newly created request using the same transaction variable. However, this request doesn't
    get serviced and the MHFRunL doesn't get called.
    If I close the transaction and recreate a new transaction handle for every request everything seems to
    work fine. My question is what could be going wrong when i use a single transaction variable over an
    entire session.

    My queries are as follows.
    Does opening multiple transaction variables, opens multiple sockets ?.
    What could be probable reasons for the responses getting interleaved ?.

    How do i go about achieving request pipelining.?
    Any pointers to solution will be helpful.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Ahmedabad, India

    Re: HTTP Request Pipelining

    Were you able to achieve HTTP Request Pipelining?

  3. #3
    Registered User
    Join Date
    Dec 2004

    Re: HTTP Request Pipelining

    what i could understand about request pipelining is that,
    Requests are queued if there is some transaction already active. when no transaction is active, all requests in the queue (say max 4) are submitted, without waiting for the responses. After this the handler waits for the responses in the order in which the requests were submitted.

    In this sense, request pipelining seem to work as i get responses for all the submitted requests. But somehow the responses are interleaved.

    Also i would like to know,
    whether creating a new transaction for each request opens a new socket connection. ?

Similar Threads

  1. Replies: 6
    Last Post: 2008-05-15, 07:55
  2. How to send customized(none-standard) HTTP request headers?
    By trendin in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2007-06-02, 06:02
  3. Custom HTTP Header Name in POST Request
    By srigans1 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-08-25, 06:56
  4. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33

Posting Permissions

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