When Using TCP, always disconnect..

nathvela

Member
When I use this setting, I always get STREAM_STATUS.FAILED after a while maybe after 5 minutes after initial publish.
ice_tcp_transport=true

And when I use :
ice_tcp_transport=false:
I dont get the disconnects but there are short pauses/freezes in the stream published..

1. This happens on both chrome and firefox.
2. This happens no matter the load. We've tested on 1 publisher and more than 100.. The same thing.



How can I solve this.. Thank you
 

nathvela

Member
Hi,

This is a single server .

1. WCS V5.2.108
2. OS Version - Mac OSX 10.13.1, Chrome 73.0.3683
3. flashphoner.properties:

#server ip
ip =69.59.196.196
ip_local =69.59.196.196
#codecs
codecs_exclude_sip =mpeg4-generic,flv,mpv
codecs_exclude_streaming =flv,telephone-event
codecs_exclude_sip_rtmp =opus,g729,g722,mpeg4-generic,vp8,mpv
#websocket ports
ws.port =8080
wss.port =8443
rtp_receive_buffer_size=131072
rtp_send_buffer_size =131072
webrtc_cc2_twcc=false
#codecs=opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,h264,vp8,flv,mpv
codecs=opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,vp8,h264,mpv
webrtc_cc2_local_k_threshold=0.1
webrtc_cc2_min_remb_bitrate_bp=100000
disable_streaming_proxy=true
ice_tcp_transport=true
rtp_force_synchronization=true
keep_alive.algorithm=NONE


4. You may test at:
https://wcs4.icondat.com:8888/client2/examples/demo/streaming/streamer/streamer.html

Additional Info:
I am attaching a sample log for when this happens.
The exact line is at 11:01:55,704 - It says IceTimeoutThread, maybe ths helps.


Thanks
 

Attachments

Max

Administrator
Staff member
Did you open TCP ports range [31000-32000] on your server?
Try to bind port from this range by a service, i.e. 31001 then do
Code:
telnet 69.59.196.196 31001
 

nathvela

Member
Yes the port range is open. iptables is stopped and Ive successfully telnet to
69.59.196.196 31001 when I run httpd on that port.
 

Max

Administrator
Staff member
Checked publishing on your server as it is configured (with ice_tcp_transport=true) - it does work, though sometimes "Failed to send, channel is not available" occur (i.e., TCP connection is dropped).
Please update the flashphoner.properties
- add
Code:
media_port_from=31001
media_port_to=32000
- remove
Code:
keep_alive.algorithm=NONE
- add the setting for client logs
Code:
client_log_level=debug
Restart the WCS
Code:
service webcallserver restart
If the issue is reproducible, send server and client logs and traffic dump (per the error report procedure).
 
Top