diff -r a0da872af3fa -r c59bddbfd7b9 applayerpluginsandutils/httptransportplugins/httptransporthandler/csocket.cpp --- a/applayerpluginsandutils/httptransportplugins/httptransporthandler/csocket.cpp Wed Sep 01 12:21:21 2010 +0100 +++ b/applayerpluginsandutils/httptransportplugins/httptransporthandler/csocket.cpp Wed Oct 13 15:09:28 2010 +0300 @@ -27,7 +27,9 @@ const TInt KSocketRecvBufSize = 16 * 1024; const TInt KSocketSendBufSize = 16 * 1024; const TInt KSocketDefaultSendBufSize = 4 * 1024; -const TUint32 KSoTcpLingerinMicroSec = 0x101F55F6;//linger constant to send close connection fast + +const TUint32 TSoTcpLingerinMicroSec = 0x101F55F6;//linger constant to send close connection fast + CSocket* CSocket::NewL(MCommsInfoProvider& aCommsInfoProvider, TSocketType aSocketType) /** @@ -138,16 +140,14 @@ iSocket.SetOpt(KSoTcpNoDelay,KSolInetTcp,1); // Disable the nagle. iSocket.SetOpt(KSORecvBuf, KSOLSocket, KSocketRecvBufSize); // Set the socket recv buf to be 16K } - TInt lingerTimeout = iCommsInfoProvider.GetSocketImmediateCloseTimeout(); if (lingerTimeout != KErrNotFound) { TPckgBuf linger; linger().iOnOff = 1; linger().iLinger = lingerTimeout; - iSocket.SetOpt(KSoTcpLingerinMicroSec, KSolInetTcp, linger); + iSocket.SetOpt(TSoTcpLingerinMicroSec, KSolInetTcp, linger); } - } return error; }