×
Namespaces

Variants
Actions

SocketConnection is terminated with IOException when access point is disconnected (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Nokia N8-00, Nokia C7-00
Compatibility
Platform(s):
Symbian^3
MIDP 2.1
Article
Keywords: Connector.open("socket://localhost:port")
Created: User:Kbwiki (23 Mar 2011)
Last edited: hamishwillee (25 Jul 2013)

Description

In Symbian^3, there are certain issues related to connecting localhost with SocketConnection.

  • First, connecting to localhost by using SocketConnection causes the default access point (mobile network or WLAN) to connect alongside with the actual localhost connection.
  • Second, if the user stops an active socket connection from Connection Manager or the access point goes down due to being out of coverage, the socket connection is also terminated and IOException will be thrown by the MIDlet. It will not be possible to reconnect the socket until the MIDlet is restarted.

In previous Editions prior to Symbian^3, the established socket connection would stay connected even if the access point was disconnected.


Steps to reproduce the problem

  1. Create a MIDlet which connects localhost as follows:
      sc =(SocketConnection)Connector.open("socket://127.0.0.1:7990");
  2. Create a native application which will work as a server that listens to the localhost port (here: 7990).
  3. Connect the MIDlet to localhost. The default access point is started.
  4. Connection is established and socket is connected.
  5. Go to Connection Manager and disconnect the default access point.


Solution

These issues are expected to be fixed in future firmware releases for the affected devices.

This page was last modified on 25 July 2013, at 14:15.
50 page views in the last 30 days.