×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    5

    rsocket write timeout

    I am programming for s60 3rd edition on Nokia N95.
    I have an Active Object class for writing to an RSocket which continuously sends data to a server (using RSocket.Write()). It is using TCP/IP over a 3G internet connection.

    My problem is that sometimes the connection seems to go bad and the write never returns (RunL is never called). Also, I am not able to reconnect, even if I close my app and start again. I have to go into Connection Manager and close the active connection.

    Can someone please tell me how I can avoid/recover from this problem?

    Thanks,
    Mark
    Last edited by markhms; 2008-09-16 at 21:19.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: rsocket write timeout

    Hi,
    I have two questions,
    1.What is the priority you have given to your active object.
    2.Are you closing or shutting down RSocket when application is going down.
    Regards,
    Sriky

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    5

    Re: rsocket write timeout

    1. The priority is EPriorityHigh.
    2. In the destructor I am calling Close() on the RSocket as well as on the RConnection and RSocketServ.
    Last edited by markhms; 2008-09-16 at 21:46.

Similar Threads

  1. RSocket:: Write () = KErrDisconnected Error
    By swapnil_mahajan in forum Symbian C++
    Replies: 1
    Last Post: 2008-09-04, 15:18
  2. Strange problem with RSocket and Write
    By Heike1980_ in forum Symbian C++
    Replies: 6
    Last Post: 2008-02-11, 12:57
  3. RSocket write problem
    By symbiancore in forum Symbian C++
    Replies: 0
    Last Post: 2005-12-19, 15:23
  4. Replies: 0
    Last Post: 2004-04-16, 17:19

Posting Permissions

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