RConnection and RHTTPsession under V9

Login to reply to this topic.
Fri, 2006-06-02 08:11
Forum Nokia Champion
Joined: 2004-06-30
Forum posts: 36
I've got a problem with the HTTP Stack on Symbian 9 (My code works fine on Symbian 7 / Cool

I'm using a RHTTPSession with my own connection.

Code:
// Set the connection information.
RStringPool strP = iSession.StringPool();
// Set the socket server
RHTTPConnectionInfo oConnInfo = iSession.ConnectionInfo();
oConnInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketServ, RHTTPSession::GetTable() ), THTTPHdrVal (oSocketServer->Handle()) );

// Set the Connection
TInt nConnPtr = REINTERPRET_CAST(TInt, oConnection);
oConnInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable() ), THTTPHdrVal(nConnPtr));

Unfortunately when I destroy my RHTTPSession it also destroys the RConnection attached to it.

The RConnection is used by other part of my application and used to be destroyed later.

How could I prevent the RHTTPSession from destroying the RConnection ?

Fri, 2006-06-02 13:28
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: RConnection and RHTTPsession under V9
Hmm, strange. But you can always remove the property from conninfo before closing the HTTP session. I guess.

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Fri, 2006-06-02 17:11
Forum Nokia Champion
Joined: 2004-06-30
Forum posts: 36
Re: RConnection and RHTTPsession under V9
I tried it but it didn't work.

I don't destroy my RConnection be myself anymore but it looks more like a workaround than like a solution.  Embarassed
  • Login to reply to this topic.