Problem with zd soft screen recorder

Discussion in 'Web Call Server 5' started by Taihung, May 17, 2017.

  1. Taihung

    Taihung New Member

    Hi,
    I've use zd soft screen recorder from https://www.zdsoft.com/screen-recorder/ to upload a rtmp stream to WCS 5. It only work for about 45 seconds and the connection will be drop from server every time.

    I've attached the server log. Any idea ?

    Regards,

    Attached Files:

  2. Max

    Max Administrator Staff Member

    It was disconnected by keep alive.

    Try to set
    Code:
    keep_alive.algorithm=INTERNAL
    in /usr/local/FlashphonerWebCallServer/conf/server.properties
    then do wcs restart to apply changes:
    Code:
    service webcallserver restart
    If it does not work, try to disable keep alive for RTMP:
    Code:
    keep_alive.enabled=websocket
    Here we preserve keep alive for websocket only, but disable for RTMP (full list is keep_alive.enabled=websocket,rmp,rtmfp)

    If it does not work, try to disable keep alive at all
    Code:
    keep_alive.algorithm=NONE
  3. Taihung

    Taihung New Member

    keep_alive.algorithm=NONE does solve the problem.

    Thanks.
  4. Max

    Max Administrator Staff Member

    Code:
    keep_alive.algorithm=NONE
    This setting is a workaround.
    Because if you disable keep alives at all, then some players' connections will not be released properly and it may cause a leak.
    Code:
    keep_alive.enabled=websocket
    Does this setting work for you?
  5. Taihung

    Taihung New Member

    Only
    keep_alive.algorithm=NONE
    solve our problem. We will use the sample player mainly. Do you think this will cause the leak or not ?
  6. Max

    Max Administrator Staff Member

    This will cause leak in cases when user lost network connection. For example if network cable is unplugged.
    For normal disconnects when browser is closed by user it should not cause leaks.
    We will test this with other encoders: ffmpeg, FMLE, Wirecast and check how keep alive works with such encoders.

Share This Page