locked
Does the HSE_REQ_DONE_WITH_SESSION call is must if HttpExtensionProc return Pending? RRS feed

  • Question

  • User207418774 posted

    I didn't know when IIS to clean the session, if the client want to keep-alive, how to do?

    Tuesday, January 8, 2008 1:13 AM

Answers

  • User511787461 posted

    Yes, you need to either return HSE_STATUS_SUCCESS/FAILURE from HttpExtensionProc or (if you returned HSE_STATUS_PENDING) you need to call HSE_REQ_DONE_WITH_SESSION exactly once - the name is slightly misleading, it should really be called HSE_REQ_DONE_WITH_REQUEST, as you are telling IIS that you are done with the request, not the connection.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, January 8, 2008 3:47 AM

All replies

  • User511787461 posted

    Yes, you need to either return HSE_STATUS_SUCCESS/FAILURE from HttpExtensionProc or (if you returned HSE_STATUS_PENDING) you need to call HSE_REQ_DONE_WITH_SESSION exactly once - the name is slightly misleading, it should really be called HSE_REQ_DONE_WITH_REQUEST, as you are telling IIS that you are done with the request, not the connection.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, January 8, 2008 3:47 AM
  • User207418774 posted

    Oh, it just means that the IIS can destroy the ECB but not clean the session? So When Client want to keep alive, call the HSE_REQ_DONE_WITH_SESSION will not affect the connection?

     

    Tuesday, January 8, 2008 6:11 AM
  • User511787461 posted

    Yes

    Tuesday, January 8, 2008 1:13 PM
  • User207418774 posted

    THanks

    Wednesday, January 9, 2008 10:52 PM