ISBX / apprtc-ios

A native iOS video chat app based on WebRTC
BSD 3-Clause "New" or "Revised" License
1.34k stars 411 forks source link

iOS Swift webRTC appRTC , connection is getting autmatically terminated between a call after a interval of approx 2 mins (ISBX demo) #53

Open manish-1988 opened 8 years ago

manish-1988 commented 8 years ago

I am using a git library from ISBX and integrated video calling feature in my swift application all is working okay Its just a major blocker is after 2 minutes of time approx the connection gets automatically terminated with the following error:-

WebSocket closed with code: 1001 reason:Stream end encountered wasClean:0

Detailed error

2016-07-18 12:44:20.687 testOttaApp-QA[527:74428] WebSocket closed with code: 1001 reason:Stream end encountered wasClean:0

2016-07-18 12:44:20.687 testOttaApp-QA[527:74428] C->RS: BYE

2016-07-18 12:44:20.687 testOttaApp-QA[527:74428] url = https://apprtc.appspot.com/leave/ootaTest82/54508636

2016-07-18 07:14:21.503 testOttaApp-QA[527:16e893000] INFO MMINTEGRATION CMediaPlatformWrapper.cpp:937

CMediaPlatformWrapper::DevicePropertyChanged called

2016-07-18 07:14:21.504 testOttaApp-QA[527:16e893000] INFO MMINTEGRATION CMediaPlatformWrapper.cpp:969 CMediaCallWrapper::fireMediaPlatformEvent() called with type 4 Disconnected!

2016-07-18 07:14:21.514 testOttaApp-QA[527:1a05f7000] INFO APPLICATION CUcmpConversationsManager.cpp:2348 CUcmpConversationsManager::onEvent(). EventType: 4

2016-07-18 12:44:22.989 testOttaApp-QA[527:74428] Unregistered from room server.

silkroadnomad commented 7 years ago

I had this error too. But IT turned out my signaling server did close the connection. I used nginx in front of glassfish / tomcat (proxy) The default was 1 minute. After 1 minute it closes the connection. I changed it by adding :

proxy_read_timeout 86400s; ##drop connections after 24h default is 60s
proxy_send_timeout 86400s;