nttcom / SkyWay-iOS-SDK

[Deprecated] SkyWay iOS SDK
17 stars 2 forks source link

Peer connections are not closed after peer destroy #4

Closed katekbg closed 7 years ago

katekbg commented 8 years ago

Test Environment: iOS SDK v.0.2.1 and iOS SDK v.0.2.2 iOS 9.3 iPhone 5s Remote Port: 3000

In our project, there should only be 3 established connections to remote port.

  1. Socket
  2. Peer
  3. MediaConnection

Peer connections are not closed but accumulate in CloseWait state after calling destroy with peer.

peer_connections

As you can see in the attached image, the previous connections are still active in CloseWait state. It accumulates every time we establish a new connection even when destroy is called before establishing the new connection.

Is this an existing issue with the SDK? Or is it just in our side?

tsu-takahashi commented 8 years ago

Hi,

Our SkyWay SDK currently doesn’t use the destination port 3000/TCP.

  1. Peer —> HTTPS/TCP connection to skyway.io
  2. MediaConnection —> UDP or TURN-TCP

So please check whether your TCP connections, established with your own server or remote-peer, are closed correctly.

Best regards,