diff -r 9ac0a0a7da70 -r 71c436fe3ce0 javacommons/gcfprotocols/http/src.s60/chttptransactionclient.cpp --- a/javacommons/gcfprotocols/http/src.s60/chttptransactionclient.cpp Tue May 25 12:34:19 2010 +0300 +++ b/javacommons/gcfprotocols/http/src.s60/chttptransactionclient.cpp Wed Jun 09 09:34:07 2010 +0300 @@ -626,6 +626,14 @@ iStatus = CHttpTransactionClient::ERequestNextBodayData; break; } + + case THTTPEvent::EReceiveTimeOut: + { + ELOG(ESOCKET,"MHFRunL EReceiveTimeOut"); + NotifyErrorL(KErrTimedOut); // send timeout error to java + break; + + } /* * -j2me expects the http stack to be able to post body data with no content type * the native stack default validation filter does not allow this. @@ -694,7 +702,6 @@ iTransaction.Cancel(); iHttpSession.RestartConnection(); - } if (iJavaWaitingOnCallBack) { @@ -707,7 +714,7 @@ LOG(ESOCKET,EInfo,"Notifiy Read EOF / Cancel"); iJavaWaitingOnCallBack=EFalse; //Notify Java of error if it is waiting for a read - iObserver->DataReadyForRead(-1); + iObserver->DataReadyForRead(aErrorCode); } }