Project

General

Profile

Actions

Bug #4226

closed

SAT>IP with RTP/AVP/TCP unclosed connections

Added by Mono Polimorph about 8 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
SAT>IP
Target version:
-
Start date:
2017-02-13
Due date:
% Done:

100%

Estimated time:
Found in version:
last commit (2017-02-13)
Affected Versions:

Description

Hi,

I found a fully reproducible bug using two instances of Tvheadend connected throught SAT>IP protocol over TCP.

Here the description of the enviroment:

- One Tvheadend instance exporting two tuners using the SAT>IP protocol.
- Another remote TVheadend instance connecting to the first over Internet (fast connection) forcing the discovery with the "--satip_xml" parameter.
- The SAT>IP client in the remote server are configured with "RTP/AVP/TCP (embedded data)" enabled. This forces to use only the TCP channel for both: RTSP commands and TS Streaming in an interlaved mode.

All works as expected... great! Until you saturate the link. In this case, the TCP socket in the remote server (the client) closes, and it tries to open another TCP socket with the second tuner (I have configured 2 tuners in the main server).

This isn't a problem. However, in the main server the first connection continues open (I see it in the UI). Also it appears the new one. But I can't manually close the connection (forcing close in the UI doesn't work). Futhermore, when three connections are open (two blocked, and a third running) as no more tuners are available the main server goes to an unusable state (it works, but I can't use any tuner or stablish new SAT>IP connections).

It's very frustrating! Please, can you fix this error?
You can reproduce this error, and I checked it with different releases (now with the last release from today compiled inhouse).


Files

Actions

Also available in: Atom PDF